Python框架 web.py
web.py是一个小巧灵活的Python框架,它简单而且功能强大。
示例代码:
import web
urls = (
'/(.*)', 'hello'
)
app = web.application(urls, globals())
cl** hello:
def GET(self, name):
if not name:
name = 'World'
return 'Hello, ' + name + '!'
if __name__ == "__main__":
app.run()安装方法:sudo easy_install web.py
示例代码:
import web
urls = (
'/(.*)', 'hello'
)
app = web.application(urls, globals())
cl** hello:
def GET(self, name):
if not name:
name = 'World'
return 'Hello, ' + name + '!'
if __name__ == "__main__":
app.run()安装方法:sudo easy_install web.py
没有找到相关结果
已邀请:
0 个回复