sqlalchemy 一对多关系
举个例子:一个“产品”有多个“版本”,代码如下。# -*- coding: utf-8 -*-from sqlalchemy import Column, String, Table, ForeignKeyfrom sqlalchemy.orm import relationshipfrom database import Basefrom sqlalchemy.dialect