# 超市大促销,会员消费满180,打7折,不满180打9折; # 非会员消费满180打8折,不满180打9.5折 # 下面代码中有三处错误,请找出错误所在处,并修改 xiaofei = int(input("请输入您的消费金额:")) # 要求:消费金额保留小数点 name = input("您是否是会员:") if name == 会员: print("您是尊贵的会员,享有超级折扣!") # 输出是会员的提示 if xiaofei >= 180: jine = xiaofei * 0.7 else: jine = xiaofei * 0.9 else: print("开通会员,可享有超级折扣哦!") # 输出不是会员的提示 if xiaofei >= 180: jine = xiaofei * 0.8 else jine = xiaofei * 0.95 print("您的实际消费金额为:",jine) # 输出最终结算的价格
标签:jine,促销,超市,print,180,会员,xiaofei,else From: https://www.cnblogs.com/Tibbers/p/17920740.html