Python上的Redis操作求助 -问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文
阿里云
为了无法计算的价值
打开APP
阿里云APP内打开

Python上的Redis操作求助

PythonShell上:

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

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

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

展开
收起
爵霸 2016-03-09 14:02:53 3381 0
1 条回答
写回答
取消 提交回答
  • 你用反了

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

    2019-07-17 18:56:03
    赞同 展开评论 打赏
问答排行榜
最热
最新
相关电子书
更多
给运维工程师的Python实战课
立即下载
Python 脚本速查手册
立即下载
ACE 区域技术发展峰会:Flink Python Table API入门及实践
立即下载