【发布时间】:2018-10-13 05:44:06
【问题描述】:
这是我的代码。
application1 = web.Application([
(r"/", MainPageHandler),
])
http_server = httpserver.HTTPServer(application1)
http_server.listen(8080)
application2 = web.Application([
(r"/appli2", MainPageHandler2),
])
http_server2 = httpserver.HTTPServer(application2)
http_server2.listen(8081)
ioloop.IOLoop.instance().start()
我想使用像https://www.tornadoweb.org/en/stable/httpserver.html 这样的多进程。 我应该如何修改我的代码?
【问题讨论】:
-
这是一个应用程序,但我的项目由两个应用程序组成
标签: python python-3.x flask tornado