zincrby() missing 1 required positional argument: 'value'
来源:3-1 技术选型 爬虫能做什么
慕雪9538615
2018-11-26
输入关键词检索,就报错,不知怎么解决。
TypeError at /search/
zincrby() missing 1 required positional argument: 'value’
Request Method: GET
Request URL: http://127.0.0.1:8000/search/?q=国务院
Django Version: 2.1.3
Exception Type: TypeError
Exception Value:
zincrby() missing 1 required positional argument: 'value’
Exception Location: C:\Users\Magicalaw001\PycharmProjects\legalab\law\views.py in get, line 45
Python Executable: C:\Users\Magicalaw001\PycharmProjects\legalab\Scripts\python.exe
Python Version: 3.5.3
Python Path:
[‘C:\Users\Magicalaw001\PycharmProjects\legalab’,
‘C:\Users\Magicalaw001\PycharmProjects\legalab\Scripts\python35.zip’,
‘C:\Program Files\Python35\DLLs’,
‘C:\Program Files\Python35\lib’,
‘C:\Program Files\Python35’,
‘C:\Users\Magicalaw001\PycharmProjects\legalab’,
‘C:\Users\Magicalaw001\PycharmProjects\legalab\lib\site-packages’,
‘C:\Users\Magicalaw001\PycharmProjects\legalab\lib\site-packages\setuptools-39.1.0-py3.5.egg’,
‘C:\Users\Magicalaw001\PycharmProjects\legalab\lib\site-packages\pip-10.0.1-py3.5.egg’]
Server time: 星期一, 26 十一月 2018 02:09:53 +0000
4回答
-
jager_he
2019-02-03
修改后报错 刚又查了百度 找到了答案
老师 应该是修改成 redis_cli.zincrby("search_keywords_set", 1,key_words)
否则还会报另外的错误
00 -
bobby
2019-01-20
可以这样试试,这个是python-redis的驱动版本导致的
00 -
bobby
2018-12-28
,这个是redis的源码, 这个是redis的命令
你可以结合这两个就知道了
00 -
bobby
2018-11-26
这个文件的zincrby() 方法需要一个参数
052019-02-06
相似问题