python中使用zadd()报错
db = redis.Redis('localhost',port=6379,password=None,decode_responses=True)
#db.set('zz',1)
db.zadd('zz', 'a',1)
#print(db.get('zz'))使用set插入和get时没问题的 ,看文档使用的zadd是用法出错了吗?
db = redis.Redis('localhost',port=6379,password=None,decode_responses=True)
#db.set('zz',1)
db.zadd('zz', 'a',1)
#print(db.get('zz'))使用set插入和get时没问题的 ,看文档使用的zadd是用法出错了吗?
2019-02-23
举报