运行 ❯
获取自己的
Python
服务器
×
更改方向
更改主题,深色/浅色
转到 Spaces
thistuple = ("apple", "banana", "cherry", "orange", "kiwi", "melon", "mango") print(thistuple[2:5]) #This will return the items from position 2 to 5. #Remember that the first item is position 0, #and note that the item in position 5 is NOT included
('樱桃', '橙子', '猕猴桃')