安装Github链接PrettyErrors python -m pip install pretty_errors python -m pretty_errors 参考[1] 知乎-一行代码简化Python异常信息