摘要: import traceback try: xxxx except: error = traceback.format_exc() print(error) 这里区分于: try: xxxx except Exception as e: print(e) 前者可以针对error做特殊处理,而后者只可 阅读全文
posted @ 2020-06-05 14:48 乔儿 阅读(1181) 评论(0) 推荐(0) 编辑