Sunday, October 19, 2014

python : slice notation

https://docs.python.org/2/tutorial/introduction.html#strings
https://docs.python.org/2.3/whatsnew/section-slices.html


Slice indices have useful defaults; an omitted first index defaults to zero, an omitted second index defaults to the size of the string being sliced.

No comments:

Related Posts Plugin for WordPress, Blogger...