📜  python 获取所有类的名称 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:33.810000             🧑  作者: Mango

代码示例1
"""Returns a list of (name, value) for each class"""

import sys
import inspect
clsmembers = inspect.getmembers(sys.modules[__name__], inspect.isclass)