2018.09.18 while循环
生活随笔
收集整理的這篇文章主要介紹了
2018.09.18 while循环
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
**? "loop" 循環(huán)? ?注意要有引號。
**pass 過
?
#打印 1-100 start = 1 while start < 101:print("loop",start)start += 1?
?
#打印1-49,81-100. 60-80的平方 start = 1 while start <101 :if start >49 and start < 60:passelif start >59 and start < 81:print("loop",start*start )else:print("loop",start)start += 1?
轉(zhuǎn)載于:https://www.cnblogs.com/boc1023/p/9666349.html
總結(jié)
以上是生活随笔為你收集整理的2018.09.18 while循环的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 新华社:华尔街专家警告2019年美股或面
- 下一篇: 实验一(高见老师收)