我正在尝试使用python调试器理解python代码中变量的变化,这是我得到的3变量的结果。我理解正确吗?
payroll = [2000, 3000, 1500]
authorised = 0
overpaid = []
for place in range(len(payroll)):
if payroll[place] > 2000:
overpaid.append(place)
else:
authorised = authorised + payroll[place]