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