已知如下遍历列表的Python for循环代码,下列选项中与之功能完全等价的while循环是?
fruits = ["apple", "banana", "cherry"]
for fruit in fruits:
print(fruit)
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析