買這商品的人也買了...
-
$580$493 -
$4,041$3,839 -
$480$379 -
$590$502 -
$360$281 -
$390$308 -
$560$437 -
$450$356 -
$450$356 -
$500$425 -
$301從零開始學Python網絡爬蟲
-
$320$250 -
$450$351 -
$350$298 -
$620$484 -
$720$568 -
$890$757
商品描述
Discover clean ways to write code that will run on both Python 2 and 3.This book is tutorial-oriented with detailed examples of how to convert existing Python 2-compatible code to code that will run reliably on both Python 2 and 3.
Although Python 3 is considered the future of Python, Python 2.x will be maintained for several more years, alongside Python 3, which is not backwards compatible. For those who need to support both versions, this book guides you through the process.
What You'll Learn
- Understand the syntactical differences between Python 2 and 3
- Use the Six and Future Libraries
- Review the new features in Python 3
- Choose which Python versions to support when doing neutral support
- Decide on whether to port or provide support for both versions
Who This Book Is For
Professional Python developers and enthusiasts that want to implement Python 3 support for their existing Python 2 compatible code.
商品描述(中文翻譯)
發現乾淨的方式來撰寫可以在 Python 2 和 3 上運行的程式碼。本書以教學為導向,提供詳細的範例,說明如何將現有的 Python 2 相容程式碼轉換為可以在 Python 2 和 3 上可靠運行的程式碼。
儘管 Python 3 被視為 Python 的未來,但 Python 2.x 將在接下來的幾年內繼續維護,與不向後相容的 Python 3 一起並行運行。對於需要同時支援這兩個版本的開發者,本書將指導您完成這個過程。
Python 2 和 3 相容性 解釋了 Python 2 和 3 之間的語法差異,以及如何使用 Python 套件 Python-Future 和 Six 來實現中立相容性。無論是小型、中型還是大型專案的開發者,都會欣賞作者清晰的解釋、詳細的範例和乾淨的技術,幫助他們將對兩個版本的支援擴展到現有的 Python 2 相容專案中。
您將學到什麼
- 了解 Python 2 和 3 之間的語法差異
- 使用 Six 和 Future 函式庫
- 回顧 Python 3 的新特性
- 在進行中立支援時選擇支援哪些 Python 版本
- 決定是否要移植或同時支援這兩個版本
本書適合誰
專業的 Python 開發者和熱愛者,希望為他們現有的 Python 2 相容程式碼實現 Python 3 的支援。