python连接redis报错

错误:AttributeError:moudle ‘redis’ has no attribute ‘Redis’

代码:

import redis   # 导入redis 模块

r = redis.Redis(host='localhost', port=6379, decode_responses=True)
r.set('name'

你可能感兴趣的:(pycharm)