diff --git a/docs/python.html b/docs/python.html index 1a9e52af..bf736baa 100644 --- a/docs/python.html +++ b/docs/python.html @@ -42,7 +42,7 @@
Python 备忘单是 Python 3 编程语言的单页参考表
>>> s = '12345' * 5
>>> s
'1234512345123451234512345'
@@ -523,7 +523,7 @@
>>> a[:]
['spam', 'egg', 'bacon', 'tomato', 'ham', 'lobster']
-['spam', 'egg', 'bacon', 'tomato', 'ham', 'lobster']
>>> a[0:6:2]
['spam', 'bacon', 'ham']
@@ -925,7 +925,7 @@
# 使用“raise”来引发错误
raise IndexError("这是一个索引错误")
except IndexError as e:
- pass # 通行证只是一个空操作。 通常你会在这里做恢复。
+ pass # pass只是一个空操作。 通常你会在这里做恢复。
except (TypeError, NameError):
pass # 如果需要,可以一起处理多个异常。
else: # try/except 块的可选子句。 必须遵循除块之外的所有内容