摘要: 初次使用redis时,在链接Redis后,运行报错“module 'redis' has no attribute 'Redis' ”。 具体代码如下: import redis r = redis.Redis(host='192.168.2.22',port=6379,db=2) r.set('n 阅读全文
posted @ 2019-11-06 16:31 piecesof 阅读(11065) 评论(2) 推荐(1) 编辑