{"id":20673022,"url":"https://github.com/relph1119/thinkpython","last_synced_at":"2026-04-27T03:31:37.648Z","repository":{"id":106543808,"uuid":"160008438","full_name":"Relph1119/ThinkPython","owner":"Relph1119","description":"Code of Think Python 2ed","archived":false,"fork":false,"pushed_at":"2018-12-02T03:26:39.000Z","size":22025,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-26T15:08:34.592Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-02T03:03:06.000Z","updated_at":"2019-12-08T06:35:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"8ba0c5b7-482e-4e34-8f69-36f466155785","html_url":"https://github.com/Relph1119/ThinkPython","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Relph1119/ThinkPython","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relph1119%2FThinkPython","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relph1119%2FThinkPython/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relph1119%2FThinkPython/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relph1119%2FThinkPython/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Relph1119","download_url":"https://codeload.github.com/Relph1119/ThinkPython/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relph1119%2FThinkPython/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32321354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"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:49.037Z","updated_at":"2026-04-27T03:31:37.631Z","avatar_url":"https://github.com/Relph1119.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 记录自己学习《像计算机科学家一样思考Python（Think Python 2ed）》这本书的全部过程 #\n\n\u0026emsp;\u0026emsp;本书上传的所有代码都是可以运行的，由于在互联网上没有找到该书全部的练习解答，故笔者自己整理，并在原有代码上进行修改完善，在此向本书作者和译者表示感谢。\u003cbr/\u003e\n\u0026emsp;\u0026emsp;原书代码地址：[http://www.greenteapress.com/thinkpython2/code/](http://www.greenteapress.com/thinkpython2/code/)\n\n## 运行环境 ##\nPython 版本：3.7.0\u003cbr/\u003e\nPyCharm 版本：PyCharm 2017.3.3 (Professional Edition)\n\n## 学习总结 ##\n\u0026emsp;\u0026emsp;本书是学习《Head First Python》入门的进阶书籍，该书中讲述的惯用法和解题思考方式，并不是按照传统的程序思维来解答的，而是采用了函数式的思考方式，以纯函数为起点，解答对应问题。该书中的精华很多都在练习中了，故笔者将练习整理出来，以便大家能更好的专注于学习。\n\n1. 书中将调试比作刑侦工作，很有意思，还引用了柯南道尔《福尔摩斯》中的话：“当你排除掉所有的可能性，那么剩下的，不管多么不可能，必定是真相。”\n2. 练习中的代码很多引用的是原版的，其中的注释都是很简单的英文。\n3. 第4章利用了Turtle模块进行图形绘制，很不错。\n![](https://i.imgur.com/Uz1rWQK.png)\n4. 练习5-6中分形的绘制，采用的是函数的递归完成的。\n![](https://i.imgur.com/ITRsgF6.png)\n5. 书中提到“找到错误的最佳地点有火车上、浴缸中及将要入睡之前在床上”，是不是有同感呢？笔者总是在洗澡的时候或者带着问题入睡，一觉醒来便知道该问题的解答了。\n6. 这本书是一本非常好的教学类书籍，强烈推荐大家学习，正如译者所说的“如果将来我的孩子愿意学习程序设计，我愿意用这本书教他。”","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelph1119%2Fthinkpython","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frelph1119%2Fthinkpython","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelph1119%2Fthinkpython/lists"}