1.SQLAlchemy之一对多关系 1.1 创建单表 class Test(Base): __tablename__ = 'user' nid = Colume(Integer,primary_key=True,autoincrement=True) name = Colume(String(32)) 1.2 创建一对多 class Team(Base): __tablename__ = 'team' tid = Colume(Integer,primary_key=True,autoincr…