[ 收藏 ] [ 简体中文 ]  
臺灣貨到付款、ATM、超商、信用卡PAYPAL付款,4-7個工作日送達,999元臺幣免運費   在線留言 商品價格為新臺幣 
首頁 電影 連續劇 音樂 圖書 女裝 男裝 童裝 內衣 百貨家居 包包 女鞋 男鞋 童鞋 計算機周邊

商品搜索

 类 别:
 关键字:
    

商品分类

  •  管理

     一般管理学
     市场/营销
     会计
     金融/投资
     经管音像
     电子商务
     创业企业与企业家
     生产与运作管理
     商务沟通
     战略管理
     商业史传
     MBA
     管理信息系统
     工具书
     外文原版/影印版
     管理类职称考试
     WTO
     英文原版书-管理
  •  投资理财

     证券/股票
     投资指南
     理财技巧
     女性理财
     期货
     基金
     黄金投资
     外汇
     彩票
     保险
     购房置业
     纳税
     英文原版书-投资理财
  •  经济

     经济学理论
     经济通俗读物
     中国经济
     国际经济
     各部门经济
     经济史
     财政税收
     区域经济
     统计 审计
     贸易政策
     保险
     经济数学
     各流派经济学说
     经济法
     工具书
     通货膨胀
     财税外贸保险类考试
     英文原版书-经济
  •  社会科学

     语言文字
     社会学
     文化人类学/人口学
     新闻传播出版
     社会科学总论
     图书馆学/档案学
     经典名家作品集
     教育
     英文原版书-社会科学
  •  哲学

     哲学知识读物
     中国古代哲学
     世界哲学
     哲学与人生
     周易
     哲学理论
     伦理学
     哲学史
     美学
     中国近现代哲学
     逻辑学
     儒家
     道家
     思维科学
     马克思主义哲学
     经典作品及研究
     科学哲学
     教育哲学
     语言哲学
     比较哲学
  •  宗教

  •  心理学

  •  古籍

     经部  史类  子部  集部  古籍管理  古籍工具书  四库全书  古籍善本影音本  中国藏书
  •  文化

     文化评述  文化随笔  文化理论  传统文化  世界各国文化  文化史  地域文化  神秘文化  文化研究  民俗文化  文化产业  民族文化  书的起源/书店  非物质文化遗产  文化事业  文化交流  比较文化学
  •  历史

     历史普及读物
     中国史
     世界史
     文物考古
     史家名著
     历史地理
     史料典籍
     历史随笔
     逸闻野史
     地方史志
     史学理论
     民族史
     专业史
     英文原版书-历史
     口述史
  •  传记

  •  文学

  •  艺术

     摄影
     绘画
     小人书/连环画
     书法/篆刻
     艺术设计
     影视/媒体艺术
     音乐
     艺术理论
     收藏/鉴赏
     建筑艺术
     工艺美术
     世界各国艺术概况
     民间艺术
     雕塑
     戏剧艺术/舞台艺术
     艺术舞蹈
     艺术类考试
     人体艺术
     英文原版书-艺术
  •  青春文学

  •  文学

     中国现当代随笔
     文集
     中国古诗词
     外国随笔
     文学理论
     纪实文学
     文学评论与鉴赏
     中国现当代诗歌
     外国诗歌
     名家作品
     民间文学
     戏剧
     中国古代随笔
     文学类考试
     英文原版书-文学
  •  法律

     小说
     世界名著
     作品集
     中国古典小说
     四大名著
     中国当代小说
     外国小说
     科幻小说
     侦探/悬疑/推理
     情感
     魔幻小说
     社会
     武侠
     惊悚/恐怖
     历史
     影视小说
     官场小说
     职场小说
     中国近现代小说
     财经
     军事
  •  童书

  •  成功/励志

  •  政治

  •  军事

  •  科普读物

  •  计算机/网络

     程序设计
     移动开发
     人工智能
     办公软件
     数据库
     操作系统/系统开发
     网络与数据通信
     CAD CAM CAE
     计算机理论
     行业软件及应用
     项目管理 IT人文
     计算机考试认证
     图形处理 图形图像多媒体
     信息安全
     硬件
     项目管理IT人文
     网络与数据通信
     软件工程
     家庭与办公室用书
  •  建筑

     执业资格考试用书  室内设计/装潢装修  标准/规范  建筑科学  建筑外观设计  建筑施工与监理  城乡规划/市政工程  园林景观/环境艺术  工程经济与管理  建筑史与建筑文化  建筑教材/教辅  英文原版书-建筑
  •  医学

     中医
     内科学
     其他临床医学
     外科学
     药学
     医技学
     妇产科学
     临床医学理论
     护理学
     基础医学
     预防医学/卫生学
     儿科学
     医学/药学考试
     医院管理
     其他医学读物
     医学工具书
  •  自然科学

     数学
     生物科学
     物理学
     天文学
     地球科学
     力学
     科技史
     化学
     总论
     自然科学类考试
     英文原版书-自然科学
  •  工业技术

     环境科学
     电子通信
     机械/仪表工业
     汽车与交通运输
     电工技术
     轻工业/手工业
     化学工业
     能源与动力工程
     航空/航天
     水利工程
     金属学与金属工艺
     一般工业技术
     原子能技术
     安全科学
     冶金工业
     矿业工程
     工具书/标准
     石油/天然气工业
     原版书
     武器工业
     英文原版书-工业技
  •  农业/林业

     园艺  植物保护  畜牧/狩猎/蚕/蜂  林业  动物医学  农作物  农学(农艺学)  水产/渔业  农业工程  农业基础科学  农林音像
  •  外语

  •  考试

  •  教材

  •  工具书

  •  中小学用书

  •  中小学教科书

  •  动漫/幽默

  •  烹饪/美食

  •  时尚/美妆

  •  旅游/地图

  •  家庭/家居

  •  亲子/家教

  •  两性关系

  •  育儿/早教

  •  保健/养生

  •  体育/运动

  •  手工/DIY

  •  休闲/爱好

  •  英文原版书

  •  港台图书

  •  研究生
     工学
     公共课
     经济管理
     理学
     农学
     文法类
     医学

  •  音乐
     音乐理论

     声乐  通俗音乐  音乐欣赏  钢琴  二胡  小提琴
  • Effective Python:編寫好Python的90個有效方法(第2版 英文版)
    該商品所屬分類:計算機/網絡 -> 計算機/網絡
    【市場價】
    635-920
    【優惠價】
    397-575
    【作者】 美布雷特·斯拉特金(Brett 
    【所屬類別】 圖書  計算機/網絡  程序設計  其他 
    【出版社】人民郵電出版社 
    【ISBN】9787115634061
    【折扣說明】一次購物滿999元台幣免運費+贈品
    一次購物滿2000元台幣95折+免運費+贈品
    一次購物滿3000元台幣92折+免運費+贈品
    一次購物滿4000元台幣88折+免運費+贈品
    【本期贈品】①優質無紡布環保袋,做工棒!②品牌簽字筆 ③品牌手帕紙巾
    版本正版全新電子版PDF檔
    您已选择: 正版全新
    溫馨提示:如果有多種選項,請先選擇再點擊加入購物車。
    *. 電子圖書價格是0.69折,例如了得網價格是100元,電子書pdf的價格則是69元。
    *. 購買電子書不支持貨到付款,購買時選擇atm或者超商、PayPal付款。付款後1-24小時內通過郵件傳輸給您。
    *. 如果收到的電子書不滿意,可以聯絡我們退款。謝謝。
    內容介紹



    開本:128開
    紙張:膠版紙
    包裝:平裝

    是否套裝:否
    國際標準書號ISBN:9787115634061
    作者:[美]布雷特·斯拉特金(Brett

    出版社:人民郵電出版社
    出版時間:2024年03月 

        
        
    "

    編輯推薦
    Python編程進階一定要讀的書


    Google的Principal Software Engineer——Brett latkin撰寫


    基於Python3.8,新增31條建議


    掌握Pythonic編程方式,寫出高質量代碼


    進階到編程高手的程序員修煉之道和代碼整潔之道 
    內容簡介
    本書是Effective Python的第2版,基於Python 3進行了全面升級。本書分為10章,包含90個條目,形式簡潔、表述明確。每個條目都基於對Python的獨到見解,告訴讀者如何高效地編寫Python程序。與第1版相比,第2版隻關注Python 3,而不再兼顧 Python 2。根據Python語言引入的新特性,以及Python開發者所形成的新經驗,對第1版中的某些思路與解決方案進行了修訂,以更好地發揮Python的優勢。本書刪除了過時的知識點,並添加了對Python新特性的一些介紹。新版中增加了31個條目,並專門設立了幾章來強調列表和字典、推導和生類和屬性、穩定性和性能,以及測試和調試


    等重要主題。
    作者簡介
    [美]布雷特·斯拉特金(Breut Slatkin)是Google的Principal Software Engineer,Google Surveys的聯合技術創辦人,也是PubSubHubbub協議的共同創造者之一。此外,Slatkin還發布了Google的一個雲計算產品--AppEngime。早在2006年,Slatkin 就開始使用Python來管理Google 龐大的服務器群。他擁有紐約哥倫比亞大學計算機工程學士學位。
    目錄
    目錄

    Chapter 1 Pythonic Thinking / 第 1 章 Pythonic 思維 1

    Item 1: Know Which Version of Python You’re Using /

    條目 1:查詢自己使用的 Python 版本 1

    Item 2: Follow the PEP 8 Style Guide /

    條目 2:遵循 PEP 8 風格指南 2

    Item 3: Know the Differences Between bytes and str /
    目錄


    Chapter 1 Pythonic Thinking / 第 1 章 Pythonic 思維 1


    Item 1: Know Which Version of Python You’re Using /


    條目 1:查詢自己使用的 Python 版本 1


    Item 2: Follow the PEP 8 Style Guide /


    條目 2:遵循 PEP 8 風格指南 2


    Item 3: Know the Differences Between bytes and str /


    條目 3:了解 bytes 和 str 之間的區別 5


    Item 4: Prefer Interpolated F-Strings Over C-style Format Strings and str.format /


    條目 4:使用支持插值的 f-string 取代 C 風格的格式化字符串和str.format 11


    Item 5: Write Helper Functions Instead of Complex Expressions /


    條目 5:使用輔助函數取代復雜表達式 21


    Item 6: Prefer Multiple Assignment Unpacking Over Indexing /


    條目 6:把數據結構直接拆分到多個變量裡,避免通過下標訪問 24


    Item 7: Prefer enumerate Over range /


    條目 7:盡量用 enumerate 取代 range 28


    Item 8: Use zip to Process Iterators in Parallel /


    條目 8:使用 zip 並行處理迭代器 30


    Item 9: Avoid else Blocks After for and while Loops /


    條目 9:避免在 for 和 while 循環後使用 else 塊 32


    Item 10: Prevent Repetition with Assignment Expressions /


    條目 10:使用賦值表達式減少重復代碼 35


    Chapter 2 Lists and Dictionaries / 第 2 章 列表和字典 43


    Item 11: Know How to Slice Sequences /


    條目 11:學會對序列做切片 43


    Item 12: Avoid Striding and Slicing in a Single Expression /


    條目 12:避免在切片裡同時指定起止下標和步進 46


    Item 13: Prefer Catch-All Unpacking Over Slicing /


    條目 13:通過帶星號的 unpacking 操作來捕素,避免用切片 48


    Item 14: Sort by Complex Criteria Using the key Parameter /


    條目 14:使用 sort 方法的 key 參數表示復雜的排序邏輯 52


    Item 15: Be Cautious When Relying on dict Insertion Ordering /


    條目 15:不要過分依賴給 dict 添加條目時所用的順序 58


    Item 16: Prefer get Over in and KeyError to Handle Missing Dictionary Keys /


    條目 16:使用 get 處理鍵不在字典中的情況,避免使用 in 與 KeyError 65


    Item 17: Prefer defaultdict Over setdefault to Handle Missing Items in Internal State /


    條目 17:使用 defaultdict 處理內部狀態中素,而避免使用setdefault 70


    Item 18: Know How to Construct Key-Dependent Default Values with __missing__ /


    條目 18:學會使用__missing__構建依賴鍵的默認值 73


    Chapter 3 Functions / 第 3 章 函數 77


    Item 19: Never Unpack More Than Three Variables When Functions Retur Multiple Values /


    條目 19:避免把函數返回的多個數值拆分到 3 個以上的變量中 77


    Item 20: Prefer Raising Exceptions to Returning None /


    條目 20:遇到意外狀況時應該拋出異常,而不是返回 None 80


    Item 21: Know How Closures Interact with Variable Scope /


    條目 21:了解如何在閉包裡面使用外圍作用域中的變量 83


    Item 22: Reduce Visual Noise with Variable Positional Arguments /


    條目 22:使用數量可變的位置參數給函數設計清晰的參數列表 87


    Item 23: Provide Optional Behavior with Keyword Arguments /


    條目 23:使用關鍵字參數表示可選行為 90


    Item 24: Use None and Docstrings to Specify Dynamic Default Arguments /


    條目 24:使用 None 和文檔字符串描述默認值會變的參數 94


    Item 25: Enforce Clarity with Keyword-Only and Positional-Only Arguments /


    條目 25:使用隻能以關鍵字指定和隻能按位置傳入的參數來設計清晰的參數列表 97


    Item 26: Define Function Decorators with functools.wraps /


    條目 26:使用 functools.wraps 定義函數修飾器 102


    Chapter 4 Comprehensions and Generators / 第 4 章 推導和生成器 107


    Item 27: Use Comprehensions Instead of map and filter /


    條目 27:使用推導取代 map 和 filter 107


    Item 28: Avoid More Than Two Control Subexpressions in Comprehensions /


    條目 28:在推導中避免超過兩個控制子表達式 109


    Item 29: Avoid Repeated Work in Comprehensions by Using Assignment Expressions /


    條目 29:使用賦值表達式在推導中避免重復代碼 111


    Item 30: Consider Generators Instead of Returning Lists /


    條目 30:考慮使用生成器而不是返回列表 114


    Item 31: Be Defensive When Iterating Over Arguments /


    條目 31:謹慎地迭代函數所收到的參數 117


    Item 32: Consider Generator Expressions for Large List Comprehensions /


    條目 32:考慮使用生成器表達式來進行大型列表推導的組合 122


    Item 33: Compose Multiple Generators with yield from /


    條目 33:使用 yield from 組合多個生成器 124


    Item 34: Avoid Injecting Data into Generators with send /


    條目 34:避免使用 send 向生成器注入數據 127


    Item 35: Avoid Causing State Transitions in Generators with throw /


    條目 35:避免通過 throw 變換生成器的狀態 133


    Item 36: Consider itertools for Working with Iterators and Generators /


    條目 36:考慮使用 itertools 處理迭代器和生成器 138


    Chapter 5 Classes and Interfaces / 第 5 章 類和接口 145


    Item 37: Compose Classes Instead of Nesting Many Levels of Built-in Types /


    條目 37:使用組合起來的類來實現多層結構,避免用嵌套的內置類型 145


    Item 38: Accept Functions Instead of Classes for Simple Interfaces /


    條目 38:接受函數而不是類來實現簡單接口 152


    Item 39: Use @classmethod Polymorphism to Construct Objects Generically /


    條目 39:通過@classmethod 多態來構建同一體繫中的各類對像 155


    Item 40: Initialize Parent Classes with super /


    條目 40:使用 super 初始化超類 160


    Item 41: Consider Composing Functionality with Mix-in Classes /


    條目 41:考慮使用混合類來組合功能 165


    Item 42: Prefer Public Attributes Over Private Ones /


    條目 42:優先考慮使用共有屬性表示應受保護的數據,避免使用私有屬性表示 170


    Item 43: Inherit from collections.abc for Custom Container Types /


    條目 43:使用 collections.abc 繼承自定義容器類型 175


    Chapter 6 Metaclasses and Attributes / 第 6類和屬性 181


    Item 44: Use Plain Attributes Instead of Setter and Getter Methods /


    條目 44:使用純屬性而不是 setter 和 getter 方法 181


    Item 45: Consider @property Instead of Refactoring Attributes /


    條目 45:考慮使用@property 而不是重構屬性 186


    Item 46: Use Descriptors for Reusable @property Methods /


    條目 46:使用描述符來改寫需要復用的@property 方法 190


    Item 47: Use __getattr__, __getattribute__, and __setattr__ for Lazy Attributes /


    條目 47:使用__getattr__、__getattribute__和__setattr__處理惰性屬性 195


    Item 48: Validate Subclasses with __init_subclass__ /


    條目 48:使用__init_subclass__驗證子類 201


    Item 49: Register Class Existence with __init_subclass__ /


    條目 49:使用__init_subclass__記錄現有的子類 208


    Item 50: Annotate Class Attributes with __set_name__ /


    條目 50:使用__set_name__注釋類屬性 214


    Item 51: Prefer Class Decorators Over Metaclasses for Composable Class Extensions /


    條目 51:使用類修飾器類來實現可組合的類擴展 218


    Chapter 7 Concurrency and Parallelism / 第 7 章 並發和並行 225


    Item 52: Use subprocess to Manage Child Processes /


    條目 52:使用 subprocess 管理子進程 226


    Item 53: Use Threads for Blocking I/O, Avoid for Parallelism /


    條目 53:使用線程處理阻塞 I/O,但避免使用它做並行計算 230


    Item 54: Use Lock to Prevent Data Races in Threads /


    條目 54:使用 Lock 避免線程中的數據競爭 235


    Item 55: Use Queue to Coordinate Work Between Threads /


    條目 55:使用 Queue 協調線程間的工作 238


    Item 56: Know How to Recognize When Concurrency Is Necessary /


    條目 56:學會判斷何時需要並發 248


    Item 57: Avoid Creating New Thread Instances for On-demand Fan-out /


    條目 57:避免為按需分發創建新的 Thread 實例 252


    Item 58: Understand How Using Queue for Concurrency Requires Refactoring /


    條目 58:學會正確地重構代碼,以便用 Queue 做並發 257


    Item 59: Consider ThreadPoolExecutor When Threads Are Necessary for Concurrency /


    條目 59:在需要並發時考慮 ThreadPoolExecutor 264


    Item 60: Achieve Highly Concurrent I/O with Coroutines /


    條目 60:使用協程實現高並發 I/O 266


    Item 61: Know How to Port Threaded I/O to asyncio /


    條目 61:了解如何將基於線程的 I/O 移植到 asyncio 271


    Item 62: Mix Threads and Coroutines to Ease the Transition to asyncio /


    條目 62:混合使用線程和協程以便過渡到 asyncio 282


    Item 63: Avoid Blocking the asyncio Event Loop to Maximize Responsiveness /


    條目 63:避免阻塞 asyncio 事件循環以最大化程序的響應能力 289


    Item 64: Consider concurrent.futures for True Parallelism /


    條目 64:考慮 concurrent.futures 以實現真正的並行計算 292


    Chapter 8 Robustness and Performance / 第 8 章 穩定性和性能 299


    Item 65: Take Advantage of Each Block in try/except/else/finally /


    條目 65:充分利用 try/except/else/finally 結構中的每個代碼塊 299


    Item 66: Consider contextlib and with Statements for Reusable try/finally Behavior /


    條目 66:考慮使用 contextlib 和 with 語句來改寫可復用的 try/finally 代碼 304


    Item 67: Use datetime Instead of time for Local Clocks /


    條目 67:使用 datetime 模塊而不是 time 模塊處理本地時間 308


    Item 68: Make pickle Reliable with copyreg /


    條目 68:使用 copyreg 實現可靠的 pickle 操作 312


    Item 69: Use decimal When Precision Is Paramount /


    條目 69:在需要準確計算時使用 decimal 表示相應的數值 319


    Item 70: Profile Before Optimizing /


    條目 70:在優化之前進行性能分析 322


    Item 71: Prefer deque for Producer ?C Consumer Queues /


    條目 71:優先考慮使用 deque 實現生產者-消費者隊列 326


    Item 72: Consider Searching Sorted Sequences with bisect /


    條目 72:考慮使用 bisect 搜索排序序列 334


    Item 73: Know How to Use heapq for Priority Queues /


    條目 73:學會使用 heapq 制作優先級隊列 336


    Item 74: Consider memoryview and bytearray for Zero-Copy Interactions with bytes /


    條目 74:考慮使用 memoryview 和 bytearray 來實現無須拷貝的 bytes 操作 346


    Chapter 9 Testing and Debugging / 第 9 章 測試和調試 353


    Item 75: Use repr Strings for Debugging Output /


    條目 75:使用 repr 字符串輸出調試信息 354


    Item 76: Verify Related Behaviors in TestCase Subclasses /


    條目 76:通過 TestCase 子類驗證相關行為 357


    Item 77: Isolate Tests from Each Other with setUp, tearDown, setUpModule, and tearDownModule /


    條目 77:使用 setUp、tearDown、setUpModule 和tearDownModule 將測試隔離開 365


    Item 78: Use Mocks to Test Code with Complex Dependencies /


    條目 78:使用 Mock 來模擬受測代碼所依賴的復雜函數 367


    Item 79: Encapsulate Dependencies to Facilitate Mocking and Testing /


    條目 79:封裝依賴關繫以便於模擬和測試 375


    Item 80: Consider Interactive Debugging with pdb /


    條目 80:考慮使用 pdb 進行交互式調試 379


    Item 81: Use tracemalloc to Understand Memory Usage and Leaks /


    條目 81:使用 tracemalloc 了解內存使用和洩漏情況 384


    Chapter 10 Collaboration / 第 10 章 協作開發 389


    Item 82: Know Where to Find Community-Built Modules /


    條目 82:學會尋找由其他 Python 開發者所構建的模塊 389


    Item 83: Use Virtual Environments for Isolated and Reproducible Dependencies /


    條目 83:使用虛擬環境隔離環境,並重建依賴關繫 390


    Item 84: Write Docstrings for Every Function, Class, and Module /


    條目 84:為每個函數、類和模塊編寫文檔字符串 396


    Item 85: Use Packages to Organize Modules and Provide Stable APIs /


    條目 85:使用包來組織模塊並提供穩定的 API 401


    Item 86: Consider Module-Scoped Code to Configure Deployment Environments /


    條目 86:考慮使用模塊級別的代碼來配置不同的部署環境 406


    Item 87: Define a Root Exception to Insulate Callers from APIs /


    條目 87:使用根異常來隔離調用者與 API 408


    Item 88: Know How to Break Circular Dependencies /


    條目 88:了解如何打破循環依賴關繫 413


    Item 89: Consider warnings to Refactor and Migrate Usage /


    條目 89:考慮使用 warnings 來重構和遷移用法 418


    Item 90: Consider Static Analysis via typing to Obviate Bugs /


    條目 90:考慮使用 typing 做靜態分析來消除錯誤 425












     
    網友評論  我們期待著您對此商品發表評論
     
    相關商品
    在線留言 商品價格為新臺幣
    關於我們 送貨時間 安全付款 會員登入 加入會員 我的帳戶 網站聯盟
    DVD 連續劇 Copyright © 2024, Digital 了得網 Co., Ltd.
    返回頂部