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
youngershen
V2EX  ›  Python

python 2.* 和3.*有什么不同?为何会同时有2个版本在开发??

  •  
  •   youngershen ·
    youngershen · 2012-05-25 09:34:22 +08:00 · 4115 次点击
    这是一个创建于 4359 天前的主题,其中的信息可能已经有所发展或是发生改变。
    4 条回复    1970-01-01 08:00:00 +08:00
    shiweifu
        1
    shiweifu  
       2012-05-25 09:36:26 +08:00
    python 3加入了一些新特性,而且部分语法做了改动,与python 2不兼容(官方提供一个转换工具)。
    因为python 2目前大量使用,所以python 2也在维护
    youngershen
        2
    youngershen  
    OP
       2012-05-25 09:45:19 +08:00
    @shiweifu thx,在家感觉怎么样啊!!!
    tioover
        3
    tioover  
       2012-05-25 09:46:58 +08:00
    3语法更合理,但是第三方库支持比较少
    sophy
        4
    sophy  
       2012-05-25 10:08:30 +08:00
    我觉得3改了好多啊,还是在用2.7
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   797 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 21:59 · PVG 05:59 · LAX 14:59 · JFK 17:59
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.