year = 0.05 #上涨百分比
salary = 10000 #基础工资
i = 0
while i <= 20:
i += 1
print(f"{salary + (salary * (i * year))}\n.第{i}年发工资\n", end=" ")
print()
while 循环即可
标签:salary,0while,10000,python,工资,百分之五,print,year,二十年 From: https://blog.51cto.com/u_15917522/5956638