14-while + continue
语法讲解
今天学: 循环语句 for / while
i=0
while i<4:
i+=1
if i==2:
continue
print(i)
小练习
运行下面代码后输出是什么?
i=0
while i<4:
i+=1
if i==2:
continue
print(i)
提交要求: 只提交最终输出结果,不要添加多余的说明或引号。
今天学: 循环语句 for / while
i=0
while i<4:
i+=1
if i==2:
continue
print(i)
运行下面代码后输出是什么?
i=0
while i<4:
i+=1
if i==2:
continue
print(i)
提交要求: 只提交最终输出结果,不要添加多余的说明或引号。
全部评论