#注意比较break和continue的区别 for i in range(5): if i>3: break print(i) else: print('OK') for i in range(5): if i>3: continue print(i) else: print('OK')