python while寰幆璇彞,,鏍囩锛?a hre
python while寰幆璇彞,,鏍囩锛?a hre
鏍囩锛?a href='http://www.byrx.net/so/1/%e8%b7%b3%e5%87%ba%e5%be%aa%e7%8e%af' title='璺冲嚭寰幆'>璺冲嚭寰幆
while寰幆璇彞
import time #鏃?/strong>
while 鏉′欢锛?/span>
銆€銆€浠g爜鍧?/span>
銆€銆€time.sleep(1) #寤舵椂1绉?/span>
################
import time
kaishi =1
flag = true
while True:
銆€銆€print(kaishi)
銆€銆€銆€銆€if kaishi == 10 :
銆€銆€銆€銆€flag = False #锛坆reak锛夈€€銆€銆€#########break 鐢ㄤ簬璺冲嚭寰幆
銆€銆€銆€銆€kaishi = kaishi + 1銆€銆€銆€銆€銆€銆€#########continue 鐢ㄤ簬璺冲嚭褰撳墠寰幆
銆€銆€銆€銆€time.sleep(1) #寤舵椂1绉?/strong>
print(鈥榚nd鈥?
python while寰幆璇彞
鏍囩锛?a href='http://www.byrx.net/so/1/%e8%b7%b3%e5%87%ba%e5%be%aa%e7%8e%af' title='璺冲嚭寰幆'>璺冲嚭寰幆
鍘熸枃鍦板潃锛歨ttp://www.cnblogs.com/shiluoliming/p/6159443.html
评论关闭