#continue and break
#continue To end this circulation and start next circulation.
'''
about tab
eg.
for i in range(1,100): -----1
setense 1
for q in range(1,100): -----2
setense 2
continue
setense 3
setense4
in this case the setense 3 is useless
if u want to end C1,u should use just one tab and put it behind S1.
'''
#break when meet with break,the whole circulation is over.(just this round)
money = 10000
#对员工用for循环发工资
for i in range(1,21):
# 导入随机数 注意这个随机数放在里面才能每次都不一样 如果放在前面就只有一个结果。
import random
score = random.randint(1, 10)
if score < 5:
print(f'员工{i},绩效分{score},低于5,不发工资,下一位。')
elif score >= 5:
money -= 1000
print(f'向员工{i}发放工资1000元,账户余额还剩{money}元。')
if money == 0:
print(f'工资发完了,下个月领取吧。')
break