摘要: #coding:utf-8import osimport timenum=0while True: time.sleep(1) print(f"第{num}秒") num+=1 if num==5: os.system("start notepad") if num==10: os.system(" 阅读全文
posted @ 2021-03-18 11:13 cmlaiweno 阅读(30) 评论(0) 推荐(0) 编辑
摘要: #coding:utffor i in range(0,100,2): print(f"{i}")#for i in range(100) : 循环100次,i取0到99#for i in range(0,100,2) : 取值[0,98),每次步长为2#range(min,max,step) 不包 阅读全文
posted @ 2021-03-18 10:35 cmlaiweno 阅读(78) 评论(0) 推荐(0) 编辑