where pip
cd 切换这个目录
pip install redis
import redis
r = redis.Redis(host='127.0.0.1', port=6379)
user1=r.get('user1')
print(user1)
where pip
cd 切换这个目录
pip install redis
import redis
r = redis.Redis(host='127.0.0.1', port=6379)
user1=r.get('user1')
print(user1)
转载于:https://www.cnblogs.com/xuzhongtao/p/8985125.html