A segment of a string is called a slice. Selecting a slice is similar to selecting a character: >>> s = 'Monty Python' >>> print(s[0:5]) ...
確定! 回上一頁