python(day004——基础知识4)
1.for else和while else for i in range(3): print(i) else: print("无break") print("*********************") for i in range(3): print(i) if i==2: break else: print("无break") print("*********************") i=3 while i>1: print (i) i-=1 else: print("无break") print("***
用户评论