Python入门----while循环与使用的场景

# 循环

# 循环语句

# Python中常用的两个循环语句:while for

# CONDITION = True

# 递归用while最合适 其他基本使用for循环

counter = 1

while counter <= 10:

counter += 1

print(counter)

else:

print("PROGRAM IS END")

发布了98 篇原创文章 · 获赞 34 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/weixin_42133768/article/details/87683567