📜  IndexError:元组索引超出范围 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:40.365000             🧑  作者: Mango

代码示例1
fruits = ("Apple", "Banana", "Grapes", "Papaya", "Litchi")
for i in range(2, 5):
    print(fruits[i])