gem=[["大众",643518],["奔驰",319163],["宝马",265051],["福特",252323],["雪铁龙", 227967],["雷诺",130825],["现代",114878],["奥迪",255300]]
fra=[["雪铁龙", 698985],["雷诺",547704],["大众",259268],["福特",82633],["现代",77855],["宝马", 84931],["奥迪",51740],["奔驰",73254]]
eng=[["福特",254082],["大众",203150],["雪铁龙",177298],["奔驰",172238],["宝马",172048],["奥迪",143739],["雷诺",102637],["现代",89925]]
gem.sort()
fra.sort()
eng.sort()
coiunt=0
all=[]
name= "2018年欧洲三国汽车总销量排名"
print("\033[1;38;42m 2018年欧洲三国汽车总销量统计 \033[0m" )
for item1,item2,item3 in zip(gem,fra,eng ):
all.append([item1[1]+item2[1]+item3[1],item1[0]])
print (item1[0],str(item1[1]+item2[1]+item3[1]))
all.sort()
print("\033[1;38;45m 2018年欧洲三国汽车总销量排名(升序) \033[0m" )
for item in all:
print(item[1] + " " + str(item[0]) )
all.sort(reverse=True)
print("\033[1;38;43m 2018年欧洲三国汽车总销量排名(降序) \033[0m")
for item in all:
print(item[1] + " " + str(item[0]) )