sec
public text v1 · immutable#!/usr/local/bin/python2.6# -*- coding: UTF-8 -*-import web#from tornadohacks.webpy import asynchronous, async_callback, tornadorunweb.config.debug = Falseurls = ('/(.*)', 'index')class index(object): def GET(self, name): if not name: name = 'world' return 'Hello %s' % nameapp = web.application(urls, globals(), autoreload = False)def abc(f, a=None): web.wsgi.runfcgi(f, a)web.wsgi.runwsgi = abcif __name__ == "__main__": app.run() #tornadorun(app, 8080)