还是Python 2.6与Python 3? [英] Is it still Python 2.6 versus Python 3?

查看:93
本文介绍了还是Python 2.6与Python 3?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

G'day,

我想在一段时间不使用Python后再回到Python,我看到了这个问题,同时又想回到Python 2.6或Python 3.

I'm wanting to go back to Python after not using it for a while and I saw this question "Python Version for a Newbie" while wondering about getting back into Python 2.6 or Python 3.

几乎所有问题的答案都是按照这样的思路进行的:大多数代码,库,遗留系统等都是2.5或2.6而不是3,所以现在从2.x开始,然后再朝3前进.上.

Almost all of the questions' answers were along the lines that most of the code out there, libraries, legacy systems, etc., is 2.5 or 2.6 rather than 3 so start with 2.x now and then head towards 3 later on.

鉴于问题和所有答案均始于2008年12月上旬,我想知道情况仍然如此吗?

Given that the question and all answers date from early December 2008 I was wondering is this still the case?

想重新使用Python的人也许应该从2.6开始,然后再走向3?

Should someone who wants to get back into Python maybe start off with 2.6 and then head towards 3 later on?

推荐答案

是.几乎所有实时生产系统都将长期使用2.5/2.6.学习3.0是没有意义的,只是必须降级它,因为您的主机不支持它.

Yes. Virtually all live production systems will use 2.5/2.6 for a long time yet. There's no point learning 3.0, only to have to downgrade it because your host doesn't support it.

在2.5/2.6中您将学到的95%的内容仍然适用于3.

95% of what you will learn in 2.5/2.6 is applicable to 3 anyway.

这篇关于还是Python 2.6与Python 3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆