1 import inspect 2 3 def get_current_function_name(): 4 return inspect.stack()[1][3] 相关文章: 2021-12-03 2021-11-23 2022-12-23 2021-09-03 2022-12-23