楼主您好: 第一题最后的部分 for mi in range(q - m*d): sum_loss += max_day * a[I] print(sum_loss) 在sum_loss +=的下一行是不是应该还有一句i += 1呀