Python代码追踪(类似于bash -x的效果) #详细追踪 python -m trace --trace script.py #显示调用了哪些函数 python -m trace --trackcalls script.py