简体   繁体   English

Python 2.6和3.1.1,早期版本兼容性

[英]Python 2.6 and 3.1.1, earlier version compatibility

I ordered three books to start teaching myself Python - a beginning programming book, a computer science book that uses Python for all of its code references, and a book on Python network programming. 我订购了三本书来开始自学Python - 一本开始编程的书,一本使用Python进行所有代码参考的计算机科学书籍,以及一本关于Python网络编程的书。 Unfortunately, I was a little too quick on ordering them, because I hadn't noticed the version differences. 不幸的是,我订购它们的速度有点太快,因为我没有注意到版本差异。 The beginner book is for python 3.1, the CS book is Python 2.3, and the last is Python 2.6. 初学者书是针对python 3.1,CS书是Python 2.3,最后一本是Python 2.6。 The CS book is also oriented towards beginners. CS书也面向初学者。 My question is, will the different versions be too different at this level for me to effectively use all three, or will I likely be able to get by learning from the 3.1 beginners book and then sort of teach myself from the 2.3 CS book, and be able to comprehend 2.6 code? 我的问题是,不同的版本在这个级别上是否会因为我有效地使用这三个版本而有所不同,或者我是否可以通过学习3.1初学者书籍然后从2.3 CS书籍中自学能够理解2.6代码吗?

That probably didn't make sense. 这可能没有意义。 I hope it did. 我希望它能做到。

99.8% of 2.3 code is valid in 2.6. 2.3代码的99.8%在2.6中有效。 The 3.x book should be able to backfill the 2.x knowledge from 2.4 on, assuming it actually touches upon the relevant subjects. 3.x书应该能够从2.4开始回填2.x知识,假设它实际涉及相关主题。 See the various "What's New" documentation to see, well, what's new. 请参阅各种“新功能”文档,以及新功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM