where pip
cd 切换这个目录
pip install redis
import redis
r = redis.Redis(host='127.0.0.1', port=6379)
user1=r.get('user1')
print(user1)