标签: python
,而不是
from app.models import xxx,xxx,xxx
我可以
from app import models as app_models for name,value in inspect.getmembers(app_models, predicate=inspect.isclass): locals()[name] = value
这有什么缺点吗?这两种模式之间有什么区别?