eightHundreds
11/9/2016 - 12:53 PM

获得当前执行函数名

获得当前执行函数名

import sys
def method():
  method_name = sys._getframe().f_code.co_name