请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

TypeError at /search/ zincrby() missing 1 required positional argument: 'value'

Request Method: GET
Request URL: http://127.0.0.1:8000/search/?q=git&s_type=article
Django Version: 2.1.5
Exception Type: TypeError
Exception Value:

zincrby() missing 1 required positional argument: ‘value’

Exception Location: D:linuxShareNewsearchsearchiews.py in get, line 42
Python Executable: C:UsersAdministratorEnvsangchaScriptspython.exe
Python Version: 3.6.4
Python Path:

[‘D:\linuxShare\Newsearch’,
‘D:\linuxShare\Newsearch’,
‘C:\Users\Administrator\Envs\fangcha\Scripts\python36.zip’,
‘C:\Users\Administrator\Envs\fangcha\DLLs’,
‘C:\Users\Administrator\Envs\fangcha\lib’,
‘C:\Users\Administrator\Envs\fangcha\Scripts’,
‘d:\users\administrator\appdata\local\programs\python\python36\Lib’,
‘d:\users\administrator\appdata\local\programs\python\python36\DLLs’,
‘C:\Users\Administrator\Envs\fangcha’,
‘C:\Users\Administrator\Envs\fangcha\lib\site-packages’]

Server time: 星期六, 16 二月 2019 08:04:26 +0000

然后我按照之前的答案已经把方法改了但是不知道为啥改完还报这个错老师给看看。
redis_cli.zincrby(“search_keywords_set”, key_words, 1)
这是改完的代码改完没用依然报那个错为啥有value了还让我传value

正在回答

1回答

bobby 2019-02-19 15:46:29
0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信