课程/Python/后端开发
python-web.py开发入门
-
-
猿子
2018-09-30
请求参数获取:web.input();
请求头获取:web.ctx.env
-
截图
0赞 · 0采集
-
-
猿子
2018-09-30
web请求流程
-
截图
0赞 · 0采集
-
-
微sun
2018-09-06
请求处理方法
-
截图
0赞 · 0采集
-
-
微sun
2018-09-06
web请求流程
-
截图
0赞 · 0采集
-
-
霜花似雪
2018-05-12
pyweb请求处理
-
截图
0赞 · 0采集
-
-
霜花似雪
2018-05-12
pyweb请求流程
-
截图
0赞 · 0采集
-
-
GYNexus
2018-04-14
请求处理
-
截图
0赞 · 0采集
-
-
GYNexus
2018-04-14
web请求流程
-
截图
0赞 · 0采集
-
-
少玩丶哟西
2018-04-02
web请求流程
-
截图
0赞 · 0采集
-
-
carolcoral
2018-02-27
- web 请求处理
-
截图
0赞 · 0采集
-
-
慕用8912214
2018-01-30
- #coding: utf-8
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'1.html').read()
if __name__ == "__main__":
app.run()
<html>
<head>
<title>Hello</title>
</head>
<body>
<form action="/blog/123" method="post">
username:<input type="text" name="username" value=""/>
password:<input type="password" name="password" value=""/>
<input type="submit" value="submit">
</form>
</body>
</html>
-
0赞 · 1采集
-
-
ECNUGHOST
2018-01-08
- 请求参数的获取
-
截图
0赞 · 0采集
-
-
ECNUGHOST
2018-01-08
- request line 请求行
response line 回应行
-
0赞 · 0采集
-
-
the_great_virgo
2017-11-16
- web.py 请求处理函数
-
截图
0赞 · 0采集
-
-
小明同学爱思考
2017-10-10
- web.py 请求处理:请求参数&请求头
-
截图
0赞 · 0采集
-
-
小明同学爱思考
2017-10-10
- web请求流程
-
截图
0赞 · 0采集
-
-
Dreamer1017
2017-09-17
- <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>
-
0赞 · 0采集
-
-
Dreamer1017
2017-09-17
- 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()
-
0赞 · 0采集
-
-
Dreamer1017
2017-09-17
- Python语言是一款对缩进非常敏感的语言
-
0赞 · 0采集
-
-
慕粉1701266773
2017-08-05
- url处理流程
-
截图
0赞 · 0采集
-
-
Sunnie_95
2017-08-02
- (1.html)
<html>
<head>
<title>hello</title>
</head>
<body>
<h1>POST</h1>
<form action = "/blog/123" method="POST"> <!--用POST方法,提交到blog开头的url里面,请求的内容有两个字段:username和password-->
<input type="text" name="username" value=""/>
<input type="password" name="password" value=""/>
<input type="submit" value="submit">
</form>
</body>
</html>
-
0赞 · 0采集
-
-
Sunnie_95
2017-08-02
- (hello.py)
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'1.html').read()
if __name__ == "__main__":
app.run()
-
0赞 · 1采集
-
-
wanguanjin
2017-07-04
- 请求参数获取
web.input()
请求头获取
web.ctx.env
-
0赞 · 0采集
-
-
慕慕6031802
2017-06-28
- post
-
截图
0赞 · 0采集
-
-
慕慕6031802
2017-06-28
- html
-
截图
0赞 · 0采集
-
-
YukirinCS
2017-03-13
- web请求流程
-
截图
0赞 · 0采集
-
-
朱剑飞
2017-03-11
- 2
-
截图
0赞 · 0采集
-
-
晚唱
2016-11-22
- Web请求响应流程
-
截图
0赞 · 0采集