Clean Python: Elegant Coding in Python
暫譯: 乾淨的 Python:優雅的 Python 編程
Kapil, Sunil
- 出版商: Apress
- 出版日期: 2019-05-22
- 定價: $1,330
- 售價: 8.0 折 $1,064
- 語言: 英文
- 頁數: 247
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1484248775
- ISBN-13: 9781484248775
-
相關分類:
Python、程式語言
-
相關翻譯:
Python 代碼整潔之道:編寫優雅的代碼 (簡中版)
立即出貨 (庫存 < 3)
買這商品的人也買了...
商品描述
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 中的高級資料結構
- 編寫更好的模組、類別、函數和元類別
- 立即開始編寫非同步 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 等專案做出貢獻。他還與非營利組織合作,並以志願者身份貢獻他們的軟體專案。