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

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

為什么在前端輸入localhost:8080/提示not found 是路徑不對么

import web

render = web.template.render('tompalates') #相對路徑或絕對路徑 ?相對與.py文件

urls = (

'/index', 'index',

'/blog/\d+', 'blog',

'/(.*),', 'hello'

)

app = web.application(urls, globals())

class index:

def GET(self):

query = web.input()

return query

class blog:

def POST(self):

data = web.input()

return data

def GET(self):

return web.ctx.env

class hello:

def GET(self, name):

return render.hello1()


正在回答

1 回答

看下服務器有沒有打開,再看下8080這個端口是否被占用了,修改端口試下。

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

舉報

0/150
提交
取消

為什么在前端輸入localhost:8080/提示not found 是路徑不對么

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

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

幫助反饋 APP下載

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

公眾號

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