from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello World!" if __name__ == "__main__": app.run()
启动
$ pip install Flask
$ python hello.py
* Running on http://localhost:5000/
参考:https://www.oschina.net/p/flask?hmsr=aladdin1e1
使用axios发送参数请求Python web api接口