doc: optimize translation in python doc (#104)
Co-authored-by: chyok <ichenhaoyuan@qq.com>
This commit is contained in:
parent
152dc14279
commit
fda783c165
@ -336,7 +336,7 @@ o
|
|||||||
'baco'
|
'baco'
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 迈着大步
|
#### 步长
|
||||||
|
|
||||||
```python
|
```python
|
||||||
>>> s = '12345' * 5
|
>>> s = '12345' * 5
|
||||||
@ -1224,7 +1224,7 @@ try:
|
|||||||
# 使用“raise”来引发错误
|
# 使用“raise”来引发错误
|
||||||
raise IndexError("这是一个索引错误")
|
raise IndexError("这是一个索引错误")
|
||||||
except IndexError as e:
|
except IndexError as e:
|
||||||
pass # 通行证只是一个空操作。 通常你会在这里做恢复。
|
pass # pass只是一个空操作。 通常你会在这里做恢复。
|
||||||
except (TypeError, NameError):
|
except (TypeError, NameError):
|
||||||
pass # 如果需要,可以一起处理多个异常。
|
pass # 如果需要,可以一起处理多个异常。
|
||||||
else: # try/except 块的可选子句。 必须遵循除块之外的所有内容
|
else: # try/except 块的可选子句。 必须遵循除块之外的所有内容
|
||||||
|
Loading…
x
Reference in New Issue
Block a user