获取函数的源文件行号对于任何随机函数,有没有办法做到这一点 class Class: def function(self): pass import inspect print(inspect. ...2024-06-28 已阅读: n次