Python代码追踪(类似于bash -x的效果) 这个我居然找了一年。。。@_@ #详细追踪 python -m trace --trace script.py #显示调用了哪些函数 python -m trace --trackcalls script.py