PythonShell上:In [1]: db.lpush("hello","test")Out[1]: 1LIn [2]: db.lrem("hello",0,"test")Out[2]: 0Lredis-cli上:`redis 127.0.0.1:6379> lrem hello 0 test(integer) 1`
db.lpush("hello","test")
1L
db.lrem("hello",0,"test")
0L
你用反了db.lrem("hello", "test", 0);
db.lrem("hello", "test", 0);