Below code:
下面的代码:
from tornado.wsgi import WSGIContainer
from tornado.httpserver import HTTPServer
from tornado.ioloop import IOLoop
def start(app, port=8080):
http_server = HTTPServer(WSGIContainer(app))
http_server.listen(port)
try:
IOLoop.instance().start()
except KeyboardInterrupt:
print "stop"
IOLoop.instance().stop()
from tornado.wsgi import