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

推噓0(0推 0噓 5→)留言5則,0人參與, 最新作者timTan (用口頭禪區分年記)時間12年前 (2013/05/13 12:21), 編輯資訊
0
0
0
內容預覽:
最後一點的 Shebang Line 是不好的。. 因為現在大家都使用 Virtual Environment 了. 所以請寫 :. #!/usr/bin/env python. 要不然在 virtual environment 上你無法 invoke 正確的 python. --. 發信站:

推噓1(1推 0噓 2→)留言3則,0人參與, 最新作者tiefblau (tiefblau)時間12年前 (2013/05/13 08:52), 編輯資訊
0
0
3
內容預覽:
原文網址:http://google-styleguide.googlecode.com/svn/trunk/pyguide.html. Python Style Rules. *Semicolons. 不要使用分號作為每行結尾. 也不要使用分號將兩個指令塞進同一行. *Line length. 每
(還有3384個字)
首頁
上一頁
1
下一頁
尾頁