We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9264f04 + 2e6d835 commit ba0021fCopy full SHA for ba0021f
source/c01/p11_naming_slice.rst
@@ -52,16 +52,16 @@
52
>>> items
53
[0, 1, 4, 5, 6]
54
55
-如果你有一个切片对象s,你可以分别调用它的 ``s.start`` , ``s.stop`` , ``s.step`` 属性来获取更多的信息。比如:
+如果你有一个切片对象a,你可以分别调用它的 ``a.start`` , ``a.stop`` , ``a.step`` 属性来获取更多的信息。比如:
56
57
.. code-block:: python
58
59
- >>> s = slice(5, 50, 2)
60
- >>> s.start
+ >>> a = slice(5, 50, 2)
+ >>> a.start
61
5
62
- >>> s.stop
+ >>> a.stop
63
50
64
- >>> s.step
+ >>> a.step
65
2
66
>>>
67
0 commit comments