python 获取当前运行的 class 的名字

# -*- coding:utf-8 -*- import sys class testsqawd(object): def hello(self): print('the name of method is ## {} ##'.format(sys._getframe().f_code.co_name)) print('the name of clas
相关文章
相关标签/搜索