运行 ❯
拥有你自己的 Python 服务器
×
更改方向
更改主题,深色/浅色
前往 Spaces
thislist = ["apple", "banana", "cherry", "orange", "kiwi", "melon", "mango"] print(thislist[:4]) #This will return the items from index 0 to index 4. #Remember that index 0 is the first item, and index 4 is the fifth item #Remember that the item in index 4 is NOT included
['苹果', '香蕉', '樱桃', '橙子']