摘要: import sys class test_class(): def hello(self): print(sys._getframe().f_code.co_name) print(sys._getframe().f_code.co_filename) #当前文件名,可以通过__file__获得 阅读全文
posted @ 2021-04-25 16:06 流年中渲染了微笑 阅读(50) 评论(0) 推荐(0) 编辑