Python3调试过程中的异常汇总

持续更新中...

IndentationError: unexpected indent

===>检查一下缩进,可以借用yapf或者pycodestyle来帮忙

可以参考这篇文章的末尾:https://www.cnblogs.com/dotnetcrazy/p/9095793.html

TypeError: str returned non-string (type NoneType)

==> def str(self) 里面没有return返回值

猜你喜欢

转载自www.cnblogs.com/dotnetcrazy/p/9192089.html