pip install requests -i https://pypi.tuna.tsinghua.edu.cn/simple
-----------------------------------------------
from flask import Flask
app= Flask(__name__) @app.route("/")
def hello():
return "flask"
if __name__ == "__main__":
app.run() ---------------------------------------------
import tornado.ioloop
import tornado.web class MainHandler(tornado.web.RequestHandler):
def get(self):
self.write("tornado")
def make_app():
return tornado.web.Application([(r"/",MainHandler),])
if __name__ == "__main__":
app=make_app()
app.listen(8888)
tornado.ioloop.IOLoop.current().start()