异常处理---文章资源

2019/02/04
最近在处理python编程过程中的异常处理的时候,发现了很多文章。虽然和我的疑问并不是非常贴切,但仍然是非常有价值的资源。

https://jeffknupp.com/blog/2013/02/06/write-cleaner-python-use-exceptions/
https://stackoverflow.com/questions/839636/best-practices-for-python-exceptions
https://stackoverflow.com/questions/6234405/logging-uncaught-exceptions-in-python

https://code.tutsplus.com/tutorials/error-handling-logging-in-python--cms-27932
这个介绍的跟我理解的不一样,他弄了两个try。

https://code.tutsplus.com/tutorials/professional-error-handling-with-python--cms-25950
这个还有一些修饰器的概念。
https://eli.thegreenplace.net/2008/08/21/robust-exception-handling/
这个相对来说介绍的就更具体了,对一些场景也进行了叙述。

猜你喜欢

转载自blog.csdn.net/weixin_33885253/article/details/86831731
今日推荐