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

想学 Python ,先学 PY2 还是 3 呢

  •  
  •   eamon666 · Jan 9, 2018 · 3092 views
    This topic created in 3044 days ago, the information mentioned may be changed or developed.
    面向工资编程
    以求职为目的

    多谢各位 PYTHON 大佬
    15 replies    2018-01-12 15:00:09 +08:00
    Mrkon
        1
    Mrkon  
       Jan 9, 2018
    区别不大,直接学,2 的话 2.7,3 的话 3.3+。
    praynise
        2
    praynise  
       Jan 9, 2018
    区别不大,但是很多建议学 3。毕竟越来越多的包已经开始不支持 2 了
    frmongo
        3
    frmongo  
       Jan 10, 2018
    区别不大 , 但是不少经典教材和书都基于是 2.x 写的 , 也就是说估计你大概率还会先从 2.x 看起,后面用到 3 的时候,再练习下就行. 搜搜经典书开始学吧
    eamon666
        4
    eamon666  
    OP
       Jan 10, 2018
    @frmongo 大佬 推荐几本书好吗
    lctzgsh
        5
    lctzgsh  
       Jan 10, 2018   ❤️ 1
    强烈推荐,崔庆才的 Python3 爬虫教程,质量挺不错的。
    cpj
        6
    cpj  
       Jan 11, 2018
    直接上 3 啊,2020 年 Python 2 都停止支持了啊
    jfry
        7
    jfry  
       Jan 11, 2018
    学 3,3 的话功能更多一点,2.7 少一点。学了 3 之后再来看 2 会很简单。2 主要是因为还有一些老项目在用。
    vimiix
        8
    vimiix  
       Jan 11, 2018
    The use of Python 3 is highly preferred over Python 2. Consider upgrading your applications and infrastructure if you find yourself still using Python 2 in production today. If you are using Python 3, congratulations — you are indeed a person of excellent taste.

    — Kenneth Reitz
    qsnow6
        9
    qsnow6  
       Jan 11, 2018 via iPhone
    不想被编码虐就是 3
    xpresslink
        10
    xpresslink  
       Jan 11, 2018   ❤️ 1
    目前还是要学习一下 Py2,不然你会碰到许多坑。因为网上案例,教材之类的按 py2 写的存量太多。
    而且 LINUX 主要发行版内置还是 Py2 为主。不论做运维还是开发部署都是要会的。
    我就是先学的 py2,学到比较精通的程度,又学了 py3 大约只化了 1.5 小时,只是在网上找了篇文章看了一下区别,就可以直接撸 py3 代码了,因为差别真的很小。

    所以不用纠结,都要会的。先精通了一个,再学另一个只要多花 1-2 天时间。
    likuku
        11
    likuku  
       Jan 12, 2018
    py2 倒计时,不谢:
    Python 2.7 Countdown : https://pythonclock.org/

    教材?找 py3 教材又不难,现在也不属于稀缺品。
    就算是 py2 教材,假若照抄代码都跑不了,那就刚好去查 py3 相关语句 /模块 的正确用法。
    julyclyde
        12
    julyclyde  
       Jan 12, 2018
    @frmongo 旧书写 2,读者就要迁就旧书?
    deali
        13
    deali  
       Jan 12, 2018 via Android
    3 啊,必须是 3,感觉 3 很多细节比 2 舒服
    shenxgan
        14
    shenxgan  
       Jan 12, 2018
    现在刚开始学的话,那就 3 吧。“ 2020 年不再对 Python 2.7 提供支持”
    xiongweixbox
        15
    xiongweixbox  
       Jan 12, 2018
    @lctzgsh 这个教程哪里有?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3797 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 62ms · UTC 04:57 · PVG 12:57 · LAX 21:57 · JFK 00:57
    ♥ Do have faith in what you're doing.