摘要: 现有两个文件: a.py from inspect import currentframe, stack, getmodule def write(msg): f_current_line = str(currentframe().f_back.f_lineno) # 哪一行调用的此函数 print 阅读全文
posted @ 2021-02-25 16:53 wztshine 阅读(1465) 评论(1) 推荐(0) 编辑