count = 0while True: print("count:",count) count = count+1 if count == 1000: break
来源: http://www.bubuko.com/infodetail-2753804.html