Luggage_Weight=int(input("输入你的行李总重量:"))
Is_First=int(input("是否为头等舱?1为是,0不是:"))
Is_Home=int(input("是否为国内乘客?1为是,0不是:"))
Is_physical=int(input("是否为残疾乘客?1为是,0不是:"))
tota=Luggage_Weight-30
if Luggage_Weight>30:if Is_First and Is_Home:print("你的运费为:",tota*4)elif Is_First==0 and Is_Home:print("你的运费为:",tota * 6)elif Is_First==0 and Is_Home==0:print("你的运费为:",tota * 12)elif Is_physical and Is_First==0:print("你的运费为:",tota * 3)else:print("输入错误!!!")
else:
print("你的行李总总量小于30kg,享受免费托运")
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!