# Python-PEP8

{% embed url="<https://peps.python.org/pep-0008/>" %}
PEP8
{% endembed %}

## 使用方法

现在各种编辑器都有对应插件，搜索安装PEP8规范插件即可。

{% embed url="<https://black.readthedocs.io/en/stable/>" %}

可以借助 Black 实现代码格式化。

## 部分核心内容参考如下

{% file src="/files/QCFnbcVECwkWrPdQkFXR" %}

![](/files/Y4cXDid8KaKQOl3bP1Uv)

![](/files/eNi3nHIkudhWW9MlsWuY)

![](/files/ueMbCzk6vRb1tBzrJuKO)

![](/files/uXI5qy3oo4narH5ZOQRD)

![](/files/UWqFAuhOj4W7TfXzln4e)

![](/files/PLrUoPwhZjp2hfqrne4D)

![](/files/8VPQnWdjkc1U9KLBwI8O)

![](/files/7GmuJ1ew7jK9TpR0UdXm)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://chenqianhe.gitbook.io/rules/readme/coding-rules/python-pep8.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
