推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
tarjintor
V2EX  ›  Python

各位在写一个比较复杂的程序时,会自己设计一套异常类吗

  •  
  •   tarjintor · Mar 31, 2017 · 2256 views
    This topic created in 3468 days ago, the information mentioned may be changed or developed.
    我最近写了一个比较复杂的程序,就在思考这个问题,我需要自己去设计特定的异常类吗?
    如果要设计异常类,有什么注意的原则吗,感觉如果考虑各种可能出现异常的地方,我感觉可能出错的地方好多,设计起来就特别费劲了,不知道怎么搞了
    huclengyue
        1
    huclengyue  
       Apr 1, 2017
    不管是什么语音,只要你觉得有必要就可以自己写一个,什么是有必要呢?我觉得只要是自己对异常要二次处理就是有必要
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4366 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 09:57 · PVG 17:57 · LAX 02:57 · JFK 05:57
    ♥ Do have faith in what you're doing.