rise
Python/文字列slice
Python
str = 'Hello World' print(str[3:5]) #lo print(str[1:5]) #ello print(str[:5]) #Hello