python代码怎么实现跨境电商关于不同国家总成本的计算

希望提供点思路 :
国家:俄罗斯 美国 英国
对应国家运费:11 21 13
货物成本:5(需要输入)
总成本 = 对应国家运费 + 货物成本
怎么直接输出这三个国家的总成本

将国家和运费分别写入一个列表,用列表解析式计算出结果:

country=['俄罗斯','美国','英国']
fee=[11,21,13]
cost=int(input())
total_cost=[(c,f+cost)for c,f in zip(country,fee)]
for res in total_cost:
    print(res[0],'总成本:',res[1])

data_dict = { "俄罗斯":11, '美国': 21,'英国': 13,}
price = float(input(">>>"))

res = {k:v +price for k, v in data_dict.items()}
print(res)

# 要知道一个国家的则:
country = input(">>>")
print(f"{country}: 总成本为 {res.get(country,'无')}")

国家、货物成本都需要输入的。
可以用字典来存储国家和对应的运费。
通过输入的国家找到对应的运费来计算。