https://github.com/Qix-/better-exceptions
pip install better_exceptions
简单用法
启用
export BETTER_EXCEPTIONS=1 # Linux / OSX
setx BETTER_EXCEPTIONS 1 # Windows
不限制变量展示字符长度
import better_exceptions
better_exceptions.MAX_LENGTH = None
https://github.com/Qix-/better-exceptions
pip install better_exceptions
export BETTER_EXCEPTIONS=1 # Linux / OSX
setx BETTER_EXCEPTIONS 1 # Windows
import better_exceptions
better_exceptions.MAX_LENGTH = None