亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

在HelloWorld中,頁面中出現TypeError錯誤

__init__()?takes?1?positional?argument?but?2?were?given
Request Method:GET
Request URL:http://127.0.0.1:8000/bolg/hello_world
Django Version:2.0
Exception Type:TypeError
Exception Value:
__init__()?takes?1?positional?argument?but?2?were?given
Exception Location:/Users/sadocument/django_project/django_introduction/bolg/views.py in hello_world, line 9
Python Executable:/Users/sadocument/opt/anaconda3/bin/python
Python Version:3.7.6
Python Path:
['/Users/sadocument/django_project/django_introduction',
?'/Users/sadocument/opt/anaconda3/lib/python37.zip',
?'/Users/sadocument/opt/anaconda3/lib/python3.7',
?'/Users/sadocument/opt/anaconda3/lib/python3.7/lib-dynload',
?'/Users/sadocument/opt/anaconda3/lib/python3.7/site-packages',
?'/Users/sadocument/opt/anaconda3/lib/python3.7/site-packages/aeosa']


正在回答

1 回答

這個文件bolg/views.py代碼貼出來,報錯提示第九行。錯誤提示,方法接收一個參數,但是你傳了兩個參數。

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

在HelloWorld中,頁面中出現TypeError錯誤

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號