importmath
total=float(input("请输入金额:"))
if total<=500:
total*=0.9
elif total<=1500:
total*=0.85
else
total*=0.75
print(math.floor(total))
运行程序,输入“1024”后回车,程序的输出结果是