[关闭]
@zhengyuhong 2016-03-10T03:14:53.000000Z 字数 323 阅读 1161

web.py

web python


install

  1. pip install --user web.py

more about install web.py

example

  1. #!/usr/bin/env python
  2. # -*- coding:utf8 -*-
  3. import sys
  4. import web
  5. reload(sys)
  6. sys.setdefaultencoding('utf8')
  7. class index:
  8. def GET(self arg = ''):
  9. return 'hello world'
  10. if __name__ == '__main__':
  11. urls = ('/(.*)', 'index')
  12. app = web.application(urls, globals())
  13. app.run()

more about web.py

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注