money_all=56.75+72.91+88.50+26.37+68.51
money_all_str=str(money_all)
print("商品总金额为:"+money_all_str)
money_real=int(money_all)
money_real_str=str(money_real)
print("实收金额为:"+money_real_str)
print("学号后四位是:"+str(3112))
标签:real,03,学号,int,money,超市,str,print,结账
来源: https://www.cnblogs.com/zbqd/p/15260775.html