码迷,mamicode.com
首页 >  
搜索关键字:python中如果在while循环中是return会导致循环中断    ( 1个结果
python中如果在while循环中是return会导致循环中断
python中如果在while循环中是return会导致循环中断[root@10.144.5.223root]#cattest_while_return.pycount=0while(count<6):print‘Thecountis:‘,countcount=count+1print"Goodbye!"print‘-‘*20while(count>=3):print‘Thecountis:‘,countcount-=1print"Goodbye!"print‘-‘*..
分类:编程语言   时间:2015-04-29 17:32:27    阅读次数:817
1条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!