doc: optimize translation in python doc (#104)

Co-authored-by: chyok <ichenhaoyuan@qq.com>
This commit is contained in:
chyok 2022-11-17 08:53:13 +08:00 committed by GitHub
parent 152dc14279
commit fda783c165
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -336,7 +336,7 @@ o
'baco'
```
#### 迈着大
#### 步
```python
>>> s = '12345' * 5
@ -1224,7 +1224,7 @@ try:
# 使用“raise”来引发错误
raise IndexError("这是一个索引错误")
except IndexError as e:
pass # 通行证只是一个空操作。 通常你会在这里做恢复。
pass # pass只是一个空操作。 通常你会在这里做恢复。
except (TypeError, NameError):
pass # 如果需要,可以一起处理多个异常。
else: # try/except 块的可选子句。 必须遵循除块之外的所有内容