这个题有人会做吗?用python实现。

这个题有人会做吗?用python实现。感谢
这个题有人会做吗?用python实现。感谢
这个题有人会做吗?用python实现。感谢

img

a = int(input('国别(0--国内;1--外籍):'))

b = int(input('健康情况(0--健康;1--残疾):'))

c = int(input('舱别(0--头等舱;1--其他舱):'))

d = int(input('行李重量公斤数:'))

# coding=UTF-8
country=int(input('国别(0--国内;1--外籍):'))
health=int(input('健康情况(0--健康;1--残疾):'))
level=int(input('舱别(0--头等舱;1--其他舱):'))
weight=int(input('行李重量公斤数:'))
money=0
if weight>30:
    weight=weight-30
else:
    weight=0
if level==0:
    money=weight*6
elif level==1:
    money=weight*4
if health==1:
    money=0.5*money
if country==1:
    money=2*money
print("收费"+str(money)+"元")