摘要: 在Python中输出当前文件名和行号 用 inspect 库 info = inspect.currentframe() print('DEBUG!! ',info.f_code.co_filename,info.f_lineno) IPython.embed() 阅读全文
posted @ 2021-02-14 11:43 酱_油 阅读(693) 评论(0) 推荐(0) 编辑