#!/usr/bin/env python
import inspect
def current_fun_name():
return inspect.getframeinfo(inspect.currentframe())[2]
if __name__ == '__main__':
print current_fun_name()
python how to get current function name
最新推荐文章于 2023-12-23 08:22:39 发布