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
相關文章
相關標籤/搜索