import time n1 = True while n1: print("1") time.sleep(1) n1 = False print(‘end‘)
import timekaishi =1 flag = True while flag: print(kaishi) if kaishi == 1000000: flag = False kaishi = kaishi + 1 time.sleep(1) print(‘end‘)
时间: 2024-10-01 06:56:35
import time n1 = True while n1: print("1") time.sleep(1) n1 = False print(‘end‘)
import timekaishi =1 flag = True while flag: print(kaishi) if kaishi == 1000000: flag = False kaishi = kaishi + 1 time.sleep(1) print(‘end‘)