Expert Python Programming, 2/e (Paperback)
暫譯: 專家級 Python 程式設計 (第二版)

Michal Jaworski, Tarek Ziade

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

相關主題

商品描述

Become an ace Python programmer by learning best coding practices and advance-level concepts with Python 3.5

About This Book

  • Based on the latest stable version of Python (version 3.5)
  • Creating well manageable code that will run in various environments with different sets of dependencies
  • Packed with advanced concepts and best practices to write efficient Python code

Who This Book Is For

The book would appeal to web developers and Python programmers who want to start using version 3.5 and write code efficiently. Basic knowledge of Python programming is expected.

What You Will Learn

  • Conventions and best practices that are widely adopted in the python community
  • Package python code effectively for community and production use
  • Easy and lightweight ways to automate code deployment on remote systems
  • Improve your code's quality, reliability, and performance
  • Write concurrent code in python
  • Extend python with code written in different languages

In Detail

Python is a dynamic programming language, used in a wide range of domains by programmers who find it simple, yet powerful. Even if you find writing Python code easy, writing code that is efficient and easy to maintain and reuse is a challenge.

The focus of the book is to familiarize you with common conventions, best practices, useful tools and standards used by python professionals on a daily basis when working with code.

You will begin with knowing new features in Python 3.5 and quick tricks for improving productivity. Next, you will learn advanced and useful python syntax elements brought to this new version. Using advanced object-oriented concepts and mechanisms available in python, you will learn different approaches to implement metaprogramming. You will learn to choose good names, write packages, and create standalone executables easily.

You will also be using some powerful tools such as buildout and vitualenv to release and deploy the code on remote servers for production use. Moving on, you will learn to effectively create Python extensions with C, C++, cython, and pyrex. The important factors while writing code such as code management tools, writing clear documentation, and test-driven development are also covered.

You will now dive deeper to make your code efficient with general rules of optimization, strategies for finding bottlenecks, and selected tools for application optimization.

By the end of the book, you will be an expert in writing efficient and maintainable code.

Style and approach

An easy-to-follow guide that covers industry followed best practices in Python programming

商品描述(中文翻譯)

透過學習最佳編碼實踐和進階概念,成為一名優秀的 Python 程式設計師,使用 Python 3.5

本書介紹


  • 基於最新穩定版本的 Python(版本 3.5)

  • 創建可管理的代碼,能在不同環境中運行,並具備不同的依賴集

  • 充滿進階概念和最佳實踐,以編寫高效的 Python 代碼

本書適合誰閱讀

本書適合希望開始使用版本 3.5 並高效編寫代碼的網頁開發者和 Python 程式設計師。預期讀者具備基本的 Python 程式設計知識。

您將學到什麼


  • 在 Python 社群中廣泛採用的慣例和最佳實踐

  • 有效地打包 Python 代碼以供社群和生產使用

  • 簡單輕量的方式自動化遠端系統上的代碼部署

  • 提高代碼的質量、可靠性和性能

  • 在 Python 中編寫並發代碼

  • 使用不同語言編寫的代碼擴展 Python

詳細內容

Python 是一種動態程式語言,廣泛應用於各個領域,程式設計師認為它簡單而強大。即使您覺得編寫 Python 代碼很容易,編寫高效且易於維護和重用的代碼仍然是一個挑戰。

本書的重點是讓您熟悉 Python 專業人士在日常工作中使用的常見慣例、最佳實踐、有用的工具和標準。

您將從了解 Python 3.5 的新功能和提高生產力的快速技巧開始。接下來,您將學習這個新版本中引入的進階和有用的 Python 語法元素。利用 Python 中可用的進階物件導向概念和機制,您將學習不同的方法來實現元編程。您將學會選擇良好的名稱、編寫套件,並輕鬆創建獨立的可執行文件。

您還將使用一些強大的工具,如 buildout 和 virtualenv,將代碼釋出並部署到遠端伺服器以供生產使用。接下來,您將學習如何有效地使用 C、C++、Cython 和 Pyrex 創建 Python 擴展。在編寫代碼時,代碼管理工具、撰寫清晰文檔和測試驅動開發等重要因素也會被涵蓋。

您將深入了解如何通過優化的一般規則、尋找瓶頸的策略以及應用優化的選定工具來提高代碼的效率。

在本書結束時,您將成為編寫高效且易於維護代碼的專家。

風格與方法

一本易於跟隨的指南,涵蓋了 Python 程式設計中業界遵循的最佳實踐