You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
331 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

from tornado.httpserver import HTTPServer
from tornado.wsgi import WSGIContainer
from FlaskServer import app
from tornado.ioloop import IOLoop
s = HTTPServer(WSGIContainer(app))
# http://10.10.21.20:5000/ZhuQue/blog/sql?id=2
s.listen(5000) # 监听 5000 端口对应flask的端口。
IOLoop.current().start()