python 打印堆栈信息方法

第一种方法使用logging模块

 

第二种方法使用traceback模块

 

posted @ 2022-10-07 20:44  I'm_江河湖海  阅读(6)  评论(0)    收藏  举报