|
查看: 773|回复: 2
|
选择python 问题
[复制链接]
|
|
|
不好意思,我想学python 。但是我不知道选择那一个,2还是3的。看了很多帖。但是还是不知道选择那一个。能给些建议吗。?
谢谢大家~
|
|
|
|
|
|
|
|
|
|
|
发表于 10-5-2015 06:32 PM
|
显示全部楼层
本帖最后由 林果皞 于 10-5-2015 06:37 PM 编辑
学 python3 。 python2.7 bug fix support 只到2020 年。还剩 5 年而已转眼即逝。
大多数 3rd party modules 近几年都已经完成转换去 python3 了。https://python3wos.appspot.com/ 。
至于当你网上看到别人用 python2 写的 tutorial, 大多数的 syntax 还是相似的, 学了 python3 不可能看不懂。真的很大区别的话, Google 一下就可以了。
我看过有些 function 很强大,只能在 python3 使用。
linux 比如说今年尾的 Fedora 23 就会使用 python3 as default。看下面的解释:
Status of Python 3 in Linux distributions
1. ArchLinux already switched to Python 3 by default in 2011
2. Ubuntu wants to remove Python 2 from the default installation: see Shipping only Python 3 on the 14.04 CD
3. Fedora schedules the switch in Fedora 23 (october 2015): Python 3 as the Default Implementation
4. RHEL 7 doesn't provide Python 3 in the base system, but Python 3.3 is installable via Red Hat Software Collections on RHEL6 and RHEL7
5. CentOS: Python 3.3 available on CentOS 6 and 7 using SCL, see Python33 by Software Collections (no Red Hat subscription needed, CentOS has its own flavor of SCL)
- 3.4.2 coming in Software Collections 2.0, which is currently in Beta
6. In Debian, the plan is to deprecate Python 2 in Stretch (aka: Debian 9, the next Stable Debian after Jessie) and to completely remove Python 2 for the Buster release of Debian (aka: Debian 10, to be release in approximatively 2019). |
|
|
|
|
|
|
|
|
|
|

楼主 |
发表于 5-6-2015 04:28 PM
|
显示全部楼层
謝謝你 .gif)
|
|
|
|
|
|
|
|
|
| |
本周最热论坛帖子
|