python中的死循環:
這里True,代表1是真,0是假
i=0
whileTrue:
i=i+1
ifi==50:
print'Ihavegottotheround50th!'
continue
ifi>70:break
printi
死循環
i=0
whileTrue:
i=i+1
ifi==5000000:
print'Ihavegottotheround50th!'
break
#ifi>70:break
#printi
以上內容為大家介紹了如何用python編寫死循環,希望對大家有所幫助,如果想要了解更多Python相關知識,請關注IT培訓機構:千鋒教育。