python循环语句
while循环
一般形式:
while condition:
statement1
else:
statement2
a = 0 while a < 3: print(a) a = a + 1 else: print(a, " 大于或等于3")
while循环
一般形式:
while condition:
statement1
else:
statement2
a = 0 while a < 3: print(a) a = a + 1 else: print(a, " 大于或等于3")