Clean Python: Elegant Coding in Python (乾淨的 Python:優雅的程式設計)

Kapil, Sunil

買這商品的人也買了...

相關主題

商品描述

Discover the right way to code in Python. This book provides the tips and techniques you need to produce cleaner, error-free, and eloquent Python projects.

Your journey to better code starts with understanding the importance of formatting and documenting your code for maximum readability, utilizing built-in data structures and Python dictionary for improved maintainability, and working with modules and meta-classes to effectively organize your code. You will then dive deep into the new features of the Python language and learn how to effectively utilize them. Next, you will decode key concepts such as asynchronous programming, Python data types, type hinting, and path handling. Learn tips to debug and conduct unit and integration tests in your Python code to ensure your code is ready for production. The final leg of your learning journey equips you with essential tools for version management, managing live code, and intelligent code completion.

 

After reading and using this book, you will be proficient in writing clean Python code and successfully apply these principles to your own Python projects.

 

What You'll Learn

 

  • Use the right expressions and statements in your Python code
  • Create and assess Python Dictionary
  • Work with advanced data structures in Python
  • Write better modules, classes, functions, and metaclasses
  • Start writing asynchronous Python immediately
  • Discover new features in Python

 

 

 

 

 

 

Who This Book Is For

Readers with a basic Python programming knowledge who want to improve their Python programming skills by learning right way to code in Python.

 

商品描述(中文翻譯)

發現以正確方式編寫Python程式碼。本書提供了您需要產生更乾淨、無錯誤且優雅的Python專案所需的技巧和技巧。

您的更好程式碼之旅始於理解為了最大可讀性而格式化和記錄程式碼的重要性,利用內建的資料結構和Python字典來提高可維護性,以及使用模組和元類來有效組織程式碼。然後,您將深入研究Python語言的新功能並學習如何有效利用它們。接下來,您將解碼異步編程、Python資料類型、類型提示和路徑處理等關鍵概念。學習調試和在Python程式碼中進行單元和整合測試的技巧,以確保您的程式碼準備好投入生產。您學習之旅的最後一部分將為您提供版本管理、管理實時程式碼和智能程式碼完成所需的基本工具。

閱讀並使用本書後,您將能夠熟練地撰寫乾淨的Python程式碼,並成功將這些原則應用於自己的Python專案中。

本書適合具備基本Python編程知識並希望通過學習正確的Python編程方式來提高Python編程技能的讀者。

作者簡介

 

Sunil Kapil has been in the software profession for the last ten years, writing production code in Python and several other languages. He has worked as a software engineer primarily on back-end services for web and mobile. He has developed, deployed, and maintained small to big projects in production that are being loved and used by millions of users. He has completed these projects with small to big teams in different professional environments for very well-known software companies around the world. He is also a passionate advocate of open source and continuously contributes to projects such as Zulip Chat and Black. He also works with non-profit organizations and contributes to their software projects on a volunteer basis.

 

作者簡介(中文翻譯)

Sunil Kapil在軟體行業已經有十年的經驗,使用Python和其他幾種語言撰寫生產代碼。他主要作為軟體工程師,開發後端服務用於網頁和移動應用。他開發、部署和維護了多個在生產環境中被數百萬用戶喜愛和使用的小到大型項目。他在不同的專業環境中與小到大型團隊合作完成了這些項目,為全球知名的軟體公司工作。他也是開源的熱情支持者,並持續為Zulip Chat和Black等項目做出貢獻。此外,他還與非營利組織合作,以志願者身份為他們的軟體項目做出貢獻。