已知如下Python的for循环代码,下列选项中与其功能完全等价的while循环是?
nums = [2,4,6,8,10]
sum_res = 0
for num in nums:
if num % 4 == 0:
continue
sum_res += num
if sum_res > 7:
break
print(sum_res)
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析