通过引用其索引号打印所有项目:fruitlist = ["apple", "banana", "cherry"]for i in range(len(fruitlist)): print(fruitlist[i])执行结果:applebananacherry