推荐学习书目
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
MrEggNoodle
V2EX  ›  Python

关于 python 的 PEP8 代码规范

  •  
  •   MrEggNoodle · Apr 26, 2015 · 5088 views
    This topic created in 4039 days ago, the information mentioned may be changed or developed.

    各位爱好python的小伙伴,有多少人遵循PEP8去规范自己的代码?或者用其他规范?有空的来聊一下哈~

    7 replies    2015-11-03 14:53:06 +08:00
    Feiox
        1
    Feiox  
       Apr 26, 2015
    我们基于 PEP8 制定了更为详细的编码规范。另外我们还参考了谷歌开源的那个规范。
    推荐使用 PyCharm 或能实时监测编码规范的 IDE & 编辑器。
    geeklian
        2
    geeklian  
       Apr 26, 2015 via iPhone
    pep8的好处就是通用性强....
    找外包啊,招新人,都不用再去要求和适应。
    Sylv
        3
    Sylv  
       Apr 26, 2015 via iPhone
    个人的看法是,既然官方有统一的规范,那就尽量去遵守它,于人于己都有好处。
    bigzhu
        4
    bigzhu  
       Apr 26, 2015
    我在用,而且由于我负责公司技术。所以强制公司其他人都在用

    不符合规范的会被我强烈吐槽
    gladuo
        5
    gladuo  
       Apr 26, 2015
    正经写项目,请使用PyCharm,不多解释。
    phoeagon
        6
    phoeagon  
       Apr 26, 2015
    完全按照Google的Python规范,lint有警告不允许提交代码,必须解决或者在对应出加入suppress注释并详细注释为何需要suppress Q_Q
    TomShine
        7
    TomShine  
       Nov 3, 2015
    使用官方的编程规范,通用性好
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3024 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 72ms · UTC 15:11 · PVG 23:11 · LAX 08:11 · JFK 11:11
    ♥ Do have faith in what you're doing.