1. 安装web.py
pip install web.py
import web
urls = (
'/',
'index')
class index:
def GET(self):
return "Hello World"
if __name__ ==
"__main__":
app = web.application(urls,globals())
app.run()
python webCode.py
192.168.128.142
web访问
http://
192.168.128.142:
8080/
参考: 1.Python 实战(0):初识 web.py