PEP stands for Python Enhancement Proposal. (Python 增强提案)它是一份提供用 Python 编写代码的指南和约定的文档。PEP 有不同类型。对于初学者来说最有用的是信息性 PEP。此类 PEP 通常描述普遍接受的语言指南或约定,因此它们非常有帮助。除了官方风格指南 PEP 8 之外,另一个值得关注的 PEP 是 Zen of Python。

# Good
print("It's a good string!")
# Bad and harder to read
print('It\\'s a bad string!')