标签:web ati == global class get 实例 object world
1、安装web.py模块easy_install web.py
2、实现代码
import web
urls = (‘/hello‘, ‘hello‘,
)
class hello(object):
def GET(self):
return ‘hello world‘
if __name__ == "__main__":
app = web.application(urls, globals())
app.run()
Python简单Web框架web.py实例hello world
标签:web ati == global class get 实例 object world
原文地址:http://www.cnblogs.com/szmcn/p/7211806.html