python获取当前方法名

inspect.stack()[1][3]

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