缥缈止盈
from flask import Flask# 导入flask-script扩展from flask_script import Managerapp = Flask(__name__)# 实例化Manage管理器对象,把 Manager 类和应用程序实例进行关联manage = Manager(app)# 写视图函数@app.route('/')def index():return '床前明月光'if __name__ == '__main__':manage.run()# 要是使用Pycharm运行,需要再Edit Configuration中Script parameters:添加runserver