python获取当前方法名

inspect.stack()[1][3]

posted @ 2018-01-13 15:20  zipon  阅读(1404)  评论(0编辑  收藏  举报