幫助中心 | 我的帳號 | 關於我們

流利的Python語言(影印版第2版上下)

  • 作者:(巴西)盧西亞諾·拉馬略|責編:張燁
  • 出版社:東南大學
  • ISBN:9787576601473
  • 出版日期:2022/09/01
  • 裝幀:平裝
  • 頁數:983
人民幣:RMB 198 元      售價:
放入購物車
加入收藏夾

內容大鋼
    別浪費時間讓Python去適應你在其他語言中學到的模式。儘管Python的簡單性可迅速提高你的工作效率,但這往往意味著你並未運用該語言所提供的所有特性。通過這本實踐指南的更新版,你將學會如何利用最佳理念來編寫有效的現代Python 3代碼。
    發現並應用超出你過往經驗之外的Python 3慣用特性。作者Luciano Ramalho將帶你了解Python的核心語言特性和庫,並教你如何使代碼更短、更快、更具可讀性。
    新版進行了重大的更新,共包含五部分,每部分都相當於一本迷你書:
    數據結構:序列、字典、集合、Unicode和數據類。
    作為對象的函數:頭等函數、相關設計模式和函數聲明中的類型提示。
    面向對象的慣用法:組合、繼承、mixin、介面、運算符重載、協議和更多靜態類型。
    控制流:上下文管理器、生成器、協程、async/await和線程/進程池。
    元編程:屬性、特性描述符、類裝飾器以及替代或簡化元類的新類元編程鉤子。

作者介紹
(巴西)盧西亞諾·拉馬略|責編:張燁
    盧西亞諾·拉馬略,1998開始成為Python程序員,是Python軟體基金會的會員,巴西培訓公司Python.pro.br的共同所有人,巴西第一家黑客空間Garoa Hacker Clube的聯合創始人。他領導過軟體開發團隊,並在巴西的媒體、銀行和政府部門教授過Python課程。

目錄
Preface
Part I.  Data Structures
  1. The Python Data Model
    What's New in This Chapter
    A Pythonic Card Deck
    How Special Methods Are Used
    Emulating Numeric Types
    String Representation
    Boolean Value of a Custom Type
    Collection API
    Overview of Special Methods
    Why len Is Not a Method
    Chapter Summary
    Further Reading
  2. An Array of Sequences
    What's New in This Chapter
    Overview of Built-In Sequences
    List Comprehensions and Generator Expressions
    List Comprehensions and Readability
    Listcomps Versus map and filter
    Cartesian Products
    Generator Expressions
    Tuples Are Not lust Immutable Lists
    Tuples as Records
    Tuples as Immutable Lists
    Comparing Tuple and List Methods
    Unpacking Sequences and Iterables
    Using * to Grab Excess Items
    Unpacking with  in Function Calls and Sequence Literals
    Nested Unpacking
    Pattern Matching with Sequences
    Pattern Matching Sequences in an Interpreter
    Slicing
    Why Slices and Ranges Exclude the Last Item
    Slice Objects
    Multidimensional Slicing and Ellipsis
    Assigning to Slices
    Using + and * with Sequences
    Building Lists of Lists
    Augmented Assignment with Sequences
    A += Assignment Puzzler
    list.sort Versus the sorted Built-In
    When a List Is Not the Answer
    Arrays
    Memory Views
    NumPy
    Deques and Other Queues
    Chapter Summary
    Further Reading
  3. Dictionaries and Sets

    What's New in This Chapter
    Modern dict Syntax
    dict Comprehensions
    Unpacking Mappings
    Merging Mappings with ?
    Pattern Matching with Mappings
    Standard API of Mapping Types
    What Is Hashable
    Overview of Common Mapping Methods
    Inserting or Updating Mutable Values
    Automatic Handling of Missing Keys
    defaultdict: Another Take on Missing Keys
    The missing__ Method
    Inconsistent Usage of__missing__ in the Standard Library
    Variations of dict
    ……
Part II.  Functions as Objects
Part III.  Classes and Protocols
PartIV.  ControIFIow
Part v.  Metaprogramming
Afterword
Index

  • 商品搜索:
  • | 高級搜索
首頁新手上路客服中心關於我們聯絡我們Top↑
Copyrightc 1999~2008 美商天龍國際圖書股份有限公司 臺灣分公司. All rights reserved.
營業地址:臺北市中正區重慶南路一段103號1F 105號1F-2F
讀者服務部電話:02-2381-2033 02-2381-1863 時間:週一-週五 10:00-17:00
 服務信箱:bookuu@69book.com 客戶、意見信箱:cs@69book.com
ICP證:浙B2-20060032