-
1.模板 $def with() 跟普通html不同 2.創建模板文件夾 3.同名使用查看全部
-
web.py 請求處理函數查看全部
-
這章節的demo是個神器; 需要好好掌握;查看全部
-
web.py 響應處理查看全部
-
web.py 請求處理:請求參數&請求頭查看全部
-
web請求流程查看全部
-
web.py url映射查看全部
-
還沒有看查看全部
-
<html> <head> <title>hello</title> </head> <body> <h1>post</h1> <form action="/blog/123" method="POST" > <input type="text" name="userName" value=""/> <br> <input type="password" name="password" value=""/> <input type="submit" value = "submit"> </form> </body> </html>查看全部
-
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 class hello: def GET(self, name): return open(r'2.html').read() if __name__ == "__main__": app.run()查看全部
-
Python語言是一款對縮進非常敏感的語言查看全部
-
import web urls = ( '/index','index', '/blog/\d+','blog', '/(.*)', 'hello', ) app = web.application(urls, globals()) class index: def GET (self): return 'index method' class blog: def GET (self): return 'blog method' def POST (self): return 'blog post method' class hello: def GET(self, name): return open(r'1.html','r').read() if __name__ == "__main__": app.run()查看全部
-
url 匹配從上到下 范圍應該要從小到大的查看全部
-
py_web查看全部
-
url處理流程查看全部
舉報
0/150
提交
取消