V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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
silov
V2EX  ›  Python

Python 代码规范问题

  •  
  •   silov · 2016-08-19 14:04:43 +08:00 · 2490 次点击
    这是一个创建于 2808 天前的主题,其中的信息可能已经有所发展或是发生改变。
    PHP 有 psr 系列的代码规范可以参考使用

    Python 有类似的代码规范要求么?
    8 条回复    2016-08-21 13:40:13 +08:00
    kanchi240
        2
    kanchi240  
       2016-08-19 14:11:07 +08:00
    cszhiyue
        3
    cszhiyue  
       2016-08-19 14:19:09 +08:00 via Android
    pep8
    ldsink
        4
    ldsink  
       2016-08-19 14:19:14 +08:00
    v2ex 右边导航栏 Styles , PEP8 等。
    linuxchild
        5
    linuxchild  
       2016-08-19 14:24:50 +08:00 via iPhone
    pep8 就挺好的
    silov
        6
    silov  
    OP
       2016-08-19 14:41:38 +08:00
    @ruanimal @kanchi240 @cszhiyue @ldsink @linuxchild

    收到,感谢各位
    monkeylyf
        7
    monkeylyf  
       2016-08-20 01:58:50 +08:00
    PEP8.
    个人并不是很推荐 google 的 python 规范.
    hasdream
        8
    hasdream  
       2016-08-21 13:40:13 +08:00
    PEP8

    一直用 vim + python-mode 写代码 强制 pep8 代码标准 不然就警告
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3552 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 04:58 · PVG 12:58 · LAX 21:58 · JFK 00:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.