code

macname@localhost Desktop % cat exce.py    
import sys

def tmp_func():
    print(sys._getframe().f_code.co_name)

tmp_func()
macname@localhost Desktop % python3 exce.py
tmp_func
macname@localhost Desktop % 

 

 

 

 

 

 

 

 

 

 

 

相关文章:

  • 2021-05-16
  • 2022-12-23
  • 2022-02-01
  • 2022-12-23
  • 2022-12-23
  • 2021-05-27
  • 2022-12-23
  • 2021-09-06
猜你喜欢
  • 2021-11-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案