第一步:先是在项目中建立一个app:python manage.py startapp app01 第二步:python manage.py inspectdb > app01/models.py 转载于:https://www.cnblogs.com/1a2a/p/8979752.html