pip install flask --upgrade 强制更新至最新版本
from flask import Flask app = Flask(__name__) @app.route('/', methods=['GET']) def index(): return 'hello world' if __name__ == '__main__': app.run()
__name__:就是字符串,约定俗成用这个
app.run():运行
标签:__,初体验,run,name,Flask,app From: https://www.cnblogs.com/10086upup/p/17599083.html