From 02b92199296270d4e2c21b94b8f0f7f05a2da22f Mon Sep 17 00:00:00 2001 From: jaywcjlove Date: Thu, 17 Nov 2022 00:54:10 +0000 Subject: [PATCH] doc: optimize translation in python doc (#104) Co-authored-by: chyok fda783c165223c873788ab07fe286b77c03a245e --- docs/python.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 编程语言的单页参考表

入门

介绍

  • Python (python.org)
  • @@ -296,7 +296,7 @@ >>> s[2:6] 'baco' -

    迈着大步

    +

    步长

    >>> 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 块的可选子句。 必须遵循除块之外的所有内容