買這商品的人也買了...
-
輕鬆打造我的網站─XOOPS2 深入使用手冊$580$493 -
FileMaker Pro 11 Essential Training (DVD-ROM)$4,041$3,839 -
Python 3 物件導向程式設計, 2/e$480$379 -
今天不學機器學習,明天就被機器取代:從 Python 入手+演算法$590$502 -
深度學習快速入門 — 使用 TensorFlow (Getting started with TensorFlow)
$360$281 -
寫程式前就該懂的演算法 ─ 資料分析與程式設計人員必學的邏輯思考術 (Grokking Algorithms: An illustrated guide for programmers and other curious people)$390$308 -
秋聲教你玩 -- C語言與指標 : 給挑戰者的 22堂課$560$437 -
OpenCV 範例解析$450$356 -
演算法圖鑑:26種演算法 + 7種資料結構,人工智慧、數據分析、邏輯思考的原理和應用 step by step 全圖解$450$356 -
為你自己學 Git$500$425 -
$301從零開始學Python網絡爬蟲 -
秋聲教你玩 -- C語言底層破解基礎篇 : 給挑戰者的11堂課$320$250 -
秋聲教你玩 -- C語言底層破解指標篇 : 給挑戰者的9堂課$450$351 -
區塊鍊與大數據 - 打造智慧經濟$350$298 -
Visual C# 2017 從零開始$620$484 -
精通大數據!R 語言資料分析與應用, 2/e$720$568 -
王者歸來:Java 從基礎到高階應用與開發$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 的支援。
