continue 语句
break 语句
money = 10000 for i in range(1,21): import random num = random.randint(1, 10) if num < 5: print(f"员工{i},绩效是({num})不够,不发。") continue if money >= 1000: money -= 1000 print(f"员工{i},绩效是({num}),可以领取1000元,还剩{money}元。") else: print(f"工资还剩{money},结束发工资。") break