這什么我的這這個方法500報錯
class hello: ? ? ? ?
????def GET(self):
????????return open(r'demo.html').read()?
錯誤內容
<type 'exceptions.TypeError'> at /
GET() takes exactly 1 argument (2 given)
Python
C:\Python27\lib\site-packages\web\application.py in handle_class, line 437 ? ?
Web
GET http://localhost:8080/ ? ?
2022-03-24
a為鏈接標簽我也是碰到這個問題了的,下面是我的解決辦法,
2016-11-27
看下你demo.html是否存在問題,不妨先弄一個最簡單的靜態網頁進行測試,由于你沒有使用templates,記住要將這個html放在和py同一個目錄下。