新聞中心
這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
創(chuàng)新互聯(lián)Python教程:如何用python編寫死循環(huán)
python中的死循環(huán)

創(chuàng)新互聯(lián)建站主營柳林網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營網(wǎng)站建設(shè)方案,成都app軟件開發(fā),柳林h5小程序開發(fā)搭建,柳林網(wǎng)站營銷推廣歡迎柳林等地區(qū)企業(yè)咨詢
這里True,代表1是真,0是假
i = 0 while True: i = i + 1 if i == 50: print 'I have got to the round 50th!' continue if i>70:break print i
死循環(huán)
i = 0 while True: i = i + 1 if i == 5000000: print 'I have got to the round 50th!' break # if i>70:break # print i
推薦學(xué)習(xí)《python教程》。
本文名稱:創(chuàng)新互聯(lián)Python教程:如何用python編寫死循環(huán)
標(biāo)題URL:http://m.fisionsoft.com.cn/article/dhoggpp.html


咨詢
建站咨詢
