06 2021 档案

摘要: 阅读全文
posted @ 2021-06-22 10:48 琥珀主yang 阅读(27) 评论(0) 推荐(0)
摘要:在Python中可以通过sys模块中的函数,获取前位置所在的文件名、函数名、行号 1 import sys 2 3 def function(): 4 print(sys._getframe().f_code.co_filename) # 当前位置所在的文件名 5 print(sys._getfra 阅读全文
posted @ 2021-06-21 17:57 琥珀主yang 阅读(1837) 评论(0) 推荐(0)