开发笔记自用常规Flask基础框架使用flask_sqlalchemy和pymysql操作数据库,使用flask_cors开放全局cors
fromflaskimportFlaskfromflask_sqlalchemyimportSQLAlchemyfromflask_migrateimportMigratefromflask_corsimportCORSapp=Flask(__name__)app.config['SQLALCHEMY_DATABASE_URI']='mysql+pymysql://admin:hFZC3psTf7