摘要: seetings.py class Foo: TEST = True test.py import importlib # 如何根据字符串找到类 path = "settings.Foo" p, c = path.rsplit('.', maxsplit=1) m = importlib.impor 阅读全文
posted @ 2021-02-24 16:40 Feng_fu 阅读(43) 评论(0) 推荐(0) 编辑