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-02-27 14:15:32 2019 0
1 条回答
写回答
取消 提交回答
  • 喜欢技术,喜欢努力的人

    你用反了
    db.lrem("hello", "test", 0);

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