主页
Python
Python - 遍历元组
demo_tuple_while
运行 ❯
×
更改方向
保存代码
更改主题
thistuple = ("apple", "banana", "cherry") i = 0 while i < len(thistuple): print(thistuple[i]) i = i + 1
apple banana cherry