看板 [ Python ]
討論串[翻譯] Google 建議的 Python 風格指南 4
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者uranusjr (←這人是超級笨蛋)時間12年前 (2013/04/27 16:19), 編輯資訊
0
0
1
內容預覽:
注釋一下. Re-raising. try:. something(). except:. print 'Something bad just happened.'. raise. 這邊的 raise 就是所謂的 re-raise. 代表的意思是「我剛剛抓到的 exception 不管它是什麼麻煩照
(還有584個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者sandwichC (沒回應=掛站)時間12年前 (2013/04/27 15:08), 編輯資訊
0
0
1
內容預覽:
原文網址:http://google-styleguide.googlecode.com/svn/trunk/pyguide.html. * Exceptions. Exception 應小心使用。. 釋義:. Exception 用來中斷正常的程式邏輯,以應付錯誤及非預期的狀況。. 優點:. 程式
(還有902個字)
首頁
上一頁
1
下一頁
尾頁