示例图
代码: import random all_money=10000 i=0 for i in range(1,21): if all_money==0: print("工资发完了,下个月来领取吧") break else: num = random.randint(1, 10) if num>=5: all_money=all_money-1000 print(f"向员工{i}发放工资1000元,账户余额还剩{all_money}") else: print(f"员工{i},绩效分{num},不发工资,下一位")