【python】打印函数调用栈

traceback.print_stack()

原文地址:https://www.cnblogs.com/dplearning/p/7112567.html