Skip to content

Commit

Permalink
Merge pull request #79 from andyyoung01/master
Browse files Browse the repository at this point in the history
Update p11_naming_slice.rst
  • Loading branch information
yidao620c committed Jan 20, 2016
2 parents 9264f04 + 2e6d835 commit ba0021f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/c01/p11_naming_slice.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@
>>> items
[0, 1, 4, 5, 6]
如果你有一个切片对象s,你可以分别调用它的 ``s.start`` , ``s.stop`` , ``s.step`` 属性来获取更多的信息。比如:
如果你有一个切片对象a,你可以分别调用它的 ``a.start`` , ``a.stop`` , ``a.step`` 属性来获取更多的信息。比如:

.. code-block:: python
>>> s = slice(5, 50, 2)
>>> s.start
>>> a = slice(5, 50, 2)
>>> a.start
5
>>> s.stop
>>> a.stop
50
>>> s.step
>>> a.step
2
>>>
Expand Down

0 comments on commit ba0021f

Please sign in to comment.