1
felinx 2017-05-27 11:52:13 +08:00
可以试试 inspect
``` import inspect def a(): print "a" b() def b(): frame = inspect.currentframe() print frame.f_back.f_code a() ``` |
2
troywinter 2017-05-28 10:43:50 +08:00
難道不是直接 debug 嗎?
|