一月5日
循环使用else语句
count = 0 while count < 5:
print count, " is less than 5" count = count + 1 else:
print count, " is not less than 5"
以上实例输出结果为:
0 is less than 5
1 is less than 5
2 is less than 5
3 is less than 5
4 is less than 5
5 is not less than 5