习题 33: While 循环
目标与感悟:
• while循环,中文翻译过来就是当….时,对于for的直到对应的是一个集合,很明显,while的界限更大,其可能无限循环,感觉其难度更高
• 例:
#-*-coding:utf-8-*-
i =2
while i <5:
print" hei hei hei "
i = i +1
print"\t\tOver!"
可知应该会输出"
习题 33: While 循环
目标与感悟:
• while循环,中文翻译过来就是当….时,对于for的直到对应的是一个集合,很明显,while的界限更大,其可能无限循环,感觉其难度更高
• 例:
#-*-coding:utf-8-*-
i =2
while i <5:
print" hei hei hei "
i = i +1
print"\t\tOver!"
可知应该会输出"