def main():
tornado.options.parse_command_line()
# create http server
http_server = tornado.httpserver.HTTPServer(Application())
# serve the host and port pass by command line(or default 0.0.0.0:8000)
http_server.listen(options.port, options.host)
# start http server
tornado.ioloop.IOLoop.current().start()
评论列表
文章目录