按年被提到
20112012 · 7 次2026
开源书›编程语言·No.57

The Hitchhiker's Guide to Python: Best Practices for Development

Python 漫游指南
Kenneth Reitz, Tanya Schlusser 等

Python 开发的工具与最佳实践:环境搭建、项目结构、测试和常用库

免费阅读 ↗
被推荐 · 54 人首次 2011-04-23 · 最近 2024-09-21许可证 CC BY-NC-SA 3.0
54不同的人
49活跃月份
16有推荐的月份
57讨论串

Kenneth Reitz 等人维护的 Python 实践指南,在线免费,也有出版成书的版本。内容覆盖安装与环境配置、虚拟环境、项目结构、代码风格、测试,以及各应用领域的常用库和工具。和语法教程不同,它不教语言本身,而是帮已经会写 Python 的人了解社区的做法和常见陷阱,各章基本可以独立阅读。

HN 为什么推荐它

HN 上的人把它当作 Python 最佳实践和工具链的导览:适合在入门后了解虚拟环境、测试、项目结构等,也有人用它讲 Python 的常见陷阱;整体是正面推荐。

难度 2 / 5约 15 小时开放许可
适合谁

已会基本语法、想学工程实践的 Python 开发者

读之前最好知道
1Python 基础语法

怎么读

由 Claude 根据这本书和 HN 上的说法整理,可能有错
  1. 1各章可以独立读,按自己遇到的问题挑着看
  2. 2先看环境搭建、项目结构和测试相关的部分
  3. 3读代码风格和常见陷阱章节时对照自己写过的代码
  4. 4具体工具的版本变化快,以官方文档为准

HN 书评

推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算
推荐easonchan42 · 2012-04

“Also checkout the Hitchhiker's Guide to Python”

顺带建议也看看它
Where is excellent Python code?原评论 ↗
推荐JulianWasTaken · 2013-01

“You have mutable default args. They probably are not what you want. See The Hitchhiker's Guide to Python for e.g. for an explanation.”

用它解释可变默认参数的坑
Imdb-pie – Python IMDB client using the IMDB json web service for their iOS app原评论 ↗
推荐simon_weber · 2013-03

“I like The Hitchhiker's Guide to Python enough to point it out specifically (it's linked far down the page). Combined with PEP8, it's a fantastic stylistic resource.”

特别推荐,配合 PEP8 是极好的风格参考
Getting started with Python: Tips, Tools and Resources原评论 ↗
推荐jdc · 2013-08

“I've found "The Hitchhiker’s Guide to Python" quite helpful:”

觉得它对自己很有帮助
Ask HN: Python resources?原评论 ↗
推荐mnazim · 2013-10

“The Hitchhiker’s Guide to Python![1] explains a number of Python related things which beginners(in my experience and opinion) generally either tend to overlook.”

称它讲了初学者常忽略的 Python 内容
How to Tango with Django: A Python Django Tutorial原评论 ↗
推荐danso · 2014-12

“- Hitchhiker's Guide to Python: The Hitchhiker's Guide to Python”

把它列进推荐资源清单
Introduction to Data Analysis in R原评论 ↗
看全部 20 条 →
推荐aaronjgreenberg · 2015-07

“you might check out The Hitchhiker's Guide to Python: The Hitchhiker's Guide to Python”

推荐它,里面列了值得读代码的 Python 项目
Ask HN: Good Python codebases to read?原评论 ↗
推荐scheveningen · 2018-03

“Have you tried 'The Hitchhiker's Guide to Python'? It strives to be exactly this -- a guide on installation, configuration, and usage of the Python runtime and development toolchain.”

推荐它,讲 Python 运行时和工具链的安装、配置与使用
At full speed with Python: a book for self-learners原评论 ↗
推荐osteele · 2018-05

“The Hitchhiker's Guide to Python[1] (HHGTP) encapsulates a lot of standard tools and best practices. I've been recommending it to students for a few years now.”

称它涵盖许多标准工具和最佳实践,多年来一直推荐给学生
How to start a Go project in 2018原评论 ↗
推荐tony · 2020-02

“A python book, that hits different areas than this JS book would be The Hitchhiker's Guide to Python: The Hitchhiker's Guide to Python”

推荐它作为覆盖面不同于那本 JS 书的 Python 书
Ask HN: What are some books where the reader learns by building projects?原评论 ↗
推荐Jugurtha · 2020-05

“"The Hitchhiker’s Guide to Python"[^1] does a tour of the tools that would be very useful.”

说它巡览了一批很有用的工具
Ask HN: Simple but modern Python dev set-up?原评论 ↗
推荐O_H_E · 2020-08

“If you are looking for next steps for learning, consider writing tests. This should help get you started: The Hitchhiker's Guide to Python”

建议下一步学写测试,用它来入手
Show HN: Fred-CLI原评论 ↗
推荐wlamason · 2021-02

“here are some of the resources I have found helpful. The links below are in the order I would read them if I was starting again.”

把它列进自己觉得有用的学习资源,按重新入门的阅读顺序排
WTF Python: Exploring and understanding Python through surprising snippets原评论 ↗
推荐jrib · 2022-01

“I always point people here for a decent write-up of some "gotchas": The Hitchhiker's Guide to Python.”

总是推荐它来了解 Python 的 gotchas
Strict Python function parameters原评论 ↗
推荐cjohnson318 · 2022-03

“There's the Hitchhiker's Guide to Python which has a lot of advice and covers best practices and/or projects over a number of big areas”

称它有许多建议,覆盖多个大领域的最佳实践
Python built-ins worth learning (2019)原评论 ↗
推荐andthat · 2022-03

“Kenneth Reitz actually wrote a book called The Hitchhiker’s Guide to Python! which includes a chapter on Reading Great Code.”

指出 Kenneth Reitz 写了它,其中有一章讲读优秀代码
Ask HN: Codebases with great, easy to read code?原评论 ↗
推荐JohnBooty · 2023-11

“I liked this guide as an overview for more experienced programmers: The Hitchhiker's Guide to Python”

觉得它适合作为有经验程序员的概览
Ask HN: How to get back to programming Python?原评论 ↗
引用btbytes · 2012-07

“A good example is: python-guide.org -- The Hitchhiker's Guide to Python”

拿 python-guide.org 当作一个好例子
PHP: The Right Way原评论 ↗
引用avtar · 2013-10

“It looks like the person who maintains that library is also behind this The Hitchhiker's Guide to Python”

指出某个库的维护者也是这本书背后的人
A quick look at the Redis source code原评论 ↗
引用Walkman · 2014-07

“Why not add these to the Python Guide [1]? When I'm learning/reading about something, I like big, comprehensive resources”

建议把这些内容加进 Python Guide,因为喜欢全面的大资源
Easy-Python: Libraries and Resources原评论 ↗