level 4
answer=input('请问您有会员卡吗:')
money=float(input('输入消费金额'))
if answer=="y":
if money>=200:
print('打八折,消费金额为:',money=money*0.8)
elif 200>money>=100:
print('大九折,付款金额消费为:',money=money*0.9)
else:
print('不打折,消费金额为:',money)
else:
if money>=200:
print(money=money*0.95)
else:
print('消费金额为:',money)
2021年04月28日 01点04分
