摘要:
先创建数据库依赖文件如 flask-sqlalchemy.pyfrom flask_sqlalchemy import SQLAlchemy db = SQLAlchemy()然后,创建数据库表单,database.pyfrom database_extention import db class User(db.Model): id = db.Column( db.Integer, primary_key=True) name = db.Column( db.String( 50 ), unique = True ) email = db.Column( db.Strin... 阅读全文