{"id":20673067,"url":"https://github.com/relph1119/fluent-python","last_synced_at":"2025-09-27T02:30:57.023Z","repository":{"id":196228528,"uuid":"695070894","full_name":"Relph1119/fluent-python","owner":"Relph1119","description":"《流畅的Python》（第2版）学习笔记","archived":false,"fork":false,"pushed_at":"2023-09-26T08:38:45.000Z","size":76834,"stargazers_count":19,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T18:48:55.088Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://relph1119.github.io/fluent-python/#/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Relph1119.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-22T09:39:07.000Z","updated_at":"2025-01-15T09:19:06.000Z","dependencies_parsed_at":"2023-09-23T16:46:43.842Z","dependency_job_id":null,"html_url":"https://github.com/Relph1119/fluent-python","commit_stats":null,"previous_names":["relph1119/fluent-python"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Relph1119/fluent-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relph1119%2Ffluent-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relph1119%2Ffluent-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relph1119%2Ffluent-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relph1119%2Ffluent-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Relph1119","download_url":"https://codeload.github.com/Relph1119/fluent-python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relph1119%2Ffluent-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277171420,"owners_count":25773209,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-27T02:00:08.978Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T20:39:58.021Z","updated_at":"2025-09-27T02:30:52.002Z","avatar_url":"https://github.com/Relph1119.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 《流畅的Python》（第2版）阅读笔记\n\n本书《流畅的Python》属于Python的进阶学习，里面很多内容都是介绍了Python的各种特性，从序列到函数，从装饰器到继承，从异步并发到元类编程。主要介绍了：\n1. 数据结构：包含Python数据模型，各种容器（序列、映射、集合）的使用及注意事项，多种模式（序列模式、映射模式和类模式），以及对象的生命周期（引用、可变性和垃圾回收）。\n2. 函数即对象：包含函数式编程、9种可调用对象、函数装饰器、闭包等。\n3. 类和协议：包括构建容器、抽象基类和协议，处理多重继承，并对类型提示有所介绍，实现运算符重载等。\n4. 控制流：包括生成器、上下文管理器、协程、迭代器，以及`yield from`句法，并介绍了并发编程内容。\n5. 元编程：本部分是最难理解的，包括动态创建带属性的类、异步编程的思路，讲解函数、方法和描述符之间的关系，介绍元类编程。\n\n本书的杂谈部分非常棒，也单独整理出来了一章，供大家学习。\n\n原书的项目地址：https://github.com/fluentpython/example-code-2e\n\n## 在线阅读\n\nhttps://relph1119.github.io/fluent-python/#/\n\n## 项目结构\n\u003cpre\u003e\nassets---------------------------------------------示例代码\ndocs-----------------------------------------------学习笔记\n+---contents-------------------------------------------学习笔记内容\n    +---ch01.md--------------------------------------------第1章 Python数据模型\n    +---ch02.md--------------------------------------------第2章 丰富的序列\n    +---ch03.md--------------------------------------------第3章 字典和集合\n    +---ch04.md--------------------------------------------第4章 Unicode文本和字节序列\n    +---ch05.md--------------------------------------------第5章 数据类构建器\n    +---ch06.md--------------------------------------------第6章 对象引用、可变性和垃圾回收\n    +---ch07.md--------------------------------------------第7章 函数是一等对象\n    +---ch08.md--------------------------------------------第8章 函数中的类型提示\n    +---ch09.md--------------------------------------------第9章 装饰器和闭包\n    +---ch10.md--------------------------------------------第10章 使用一等函数实现设计模式\n    +---ch11.md--------------------------------------------第11章 符合Python风格的对象\n    +---ch12.md--------------------------------------------第12章 序列的特殊方法\n    +---ch13.md--------------------------------------------第13章 接口、协议和抽象基类\n    +---ch14.md--------------------------------------------第14章 继承：瑕瑜互见\n    +---ch15.md--------------------------------------------第15章 类型提示进阶\n    +---ch16.md--------------------------------------------第16章 运算符重载\n    +---ch17.md--------------------------------------------第17章 迭代器、生成器和经典协程\n    +---ch18.md--------------------------------------------第18章 with、match和else块\n    +---ch19.md--------------------------------------------第19章 Python并发模型\n    +---ch20.md--------------------------------------------第20章 并发执行器\n    +---ch21.md--------------------------------------------第21章 异步编程\n    +---ch22.md--------------------------------------------第22章 动态属性和特性\n    +---ch23.md--------------------------------------------第23章 属性描述符\n    +---ch24.md--------------------------------------------第24章 类元编程\n    +---ch25.md--------------------------------------------第25章 杂谈汇总\nnotes----------------------------------------------学习笔记JupyterNotebook格式\n\u003c/pre\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelph1119%2Ffluent-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frelph1119%2Ffluent-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelph1119%2Ffluent-python/lists"}