首页 > 开发 > Python > 正文

Python上的Redis操作求助

2017-09-06 19:39:17  来源:网友分享

PythonShell上:

In [1]: db.lpush("hello","test")Out[1]: 1LIn [2]: db.lrem("hello",0,"test")Out[2]: 0L

redis-cli上:

redis 127.0.0.1:6379> lrem hello 0 test(integer) 1

谢谢

解决方案

你用反了

db.lrem("hello", "test", 0);