------------------安装web.py------------------------
Windows10
python3.5
安装web.py问题 pip安装web.py
python3中安装web.py需要使用pip install web.py==0.40-dev1命令,官网可见
--------------最简单的demo------------
import web
urls = (
'/(.*)', 'hello'
)
app = web.application(urls, globals())
class hello:
def GET(self, name):
if not name:
name = 'World'
return 'Hello, ' + name + '!'
if __name__ == '__main__':
app.run()
---------------一些解释-------------------
web.py第2讲---一些你不知道的技术 很好了,解答了很多小白的疑惑