Get just a class name without module, etc
This question already has an answer here:
尝试这个:
instance.__class__.__name__
链接地址: http://www.djcxy.com/p/40938.html
上一篇: 你能从Python类获得实例变量名吗?
下一篇: 获取没有模块的类名等