> For the complete documentation index, see [llms.txt](https://icity.gitbook.io/python/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://icity.gitbook.io/python/codespecification_preface/codespecification_third.md).
# å½åè§è
## 1ãæ¨¡å
* 模åå°½é使ç¨å°åå½åï¼é¦åæ¯ä¿æå°åï¼å°½éä¸è¦ç¨ä¸å线(é¤éå¤ä¸ªåè¯ï¼ä¸æ°éä¸å¤çæ
åµ)
```python
# æ£ç¡®ç模åå
import decoder
import html_parser
# 䏿¨èçæ¨¡åå
import Decoder
```
## 2ãç±»å
* ç±»å使ç¨é©¼å³°(CamelCase)å½å飿 ¼ï¼é¦åæ¯å¤§åï¼ç§æç±»å¯ç¨ä¸ä¸ªä¸å线å¼å¤´
```python
class Farm():
pass
class AnimalFarm(Farm):
pass
class _PrivateFarm(Farm):
pass
```
* å°ç¸å
³çç±»åé¡¶çº§å½æ°æ¾å¨åä¸ä¸ªæ¨¡åé. ä¸åJava, 没å¿
è¦éå¶ä¸ä¸ªç±»ä¸ä¸ªæ¨¡å.
## 3ã彿°
* 彿°åä¸å¾å°åï¼å¦æå¤ä¸ªåè¯ï¼ç¨ä¸å线éå¼
```python
def run():
pass
def run_with_env():
pass
```
* ç§æå½æ°å¨å½æ°åå ä¸ä¸ªä¸å线\_
```python
class Person():
def _private_func():
pass
```
## 4ãåéå
* åéåå°½éå°å, 妿å¤ä¸ªåè¯ï¼ç¨ä¸å线éå¼
```python
if __name__ == '__main__':
count = 0
school_name = ''
```
* 常ééç¨å
¨å¤§åï¼å¦æå¤ä¸ªåè¯ï¼ä½¿ç¨ä¸å线éå¼
```python
MAX_CLIENT = 100
MAX_CONNECTION = 1000
CONNECTION_TIMEOUT = 600
```
## 5ã常é
* 常é使ç¨ä»¥ä¸å线åéç大åå½å
```python
MAX_OVERFLOW = 100
Class FooBar:
def foo_bar(self, print_):
print(print_)
```
---
# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.
## 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://icity.gitbook.io/python/codespecification_preface/codespecification_third.md?ask=