-
web開發基礎
查看全部 -
web.py是什么:
查看全部 -
web.py介紹:
查看全部 -
學習內容:
查看全部 -
響應處理的
查看全部 -
請求處理方式
查看全部 -
安裝web.py ,使用的是pip install?web.py==0.40-dev1指令進行安裝
查看全部 -
請求頭獲取
return? web.ctx.env? 獲取請求中解析的信息? 包括端口 域名
查看全部 -
pyweb響應處理
查看全部 -
import?web 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?open(r'login.html').read() if?__name__?==?"__main__": ????app.run() #http://localhost:8080/index?name=python&age=18&city=shenzhen #http://localhost:8080/ #http://localhost:8080/blog/123?name=python
查看全部 -
pyweb請求處理
查看全部 -
pyweb請求流程
查看全部 -
import?web urls?=?( ????'/index','index', ????'/blog/\d+','blog', ????'/.(.*)','hello', ) app?=?web.application(urls,?globals()) class?index: ????#def?GET(self): ????#????return?'index?method' ????def?GET(self): ????????return?open(r'html5.html','r').read() class?blog: ????def?GET(self): ????????return?'blog?method' ????def?POST(self): ????????return?'blog?post?method' class?hello: ????def?GET(self,name): ????????return?'hello?'?+?name if?__name__?==?"__main__": ????app.run() #http://localhost:8080/blog/76675667 #http://localhost:8080/index #http://localhost:8080/hello
查看全部 -
URL映射
查看全部 -
Web.py安裝
查看全部
舉報
0/150
提交
取消