The slice operator [n:m] returns the part of the string from the n'th character to the m'th character, including the ... s = "python rocks" print(s[3:8]).
確定! 回上一頁