我想知道怎样把两张同样大小的单子并排打印。在
我从这些字典中得到了嵌套的列表
以下是列表:
[
[
"Chelsea",
"Liverpool",
"ManCity",
"Arsenal",
"Spurs",
"ManU",
"Southampton",
"West Bromwich",
"Everton",
"Bournemouth",
"Stoke",
"Watford",
"West Ham",
"Middlesbrough",
"Foxes",
"Burnley",
"Crystal",
"Sunderland",
"Swans",
"Hull"
],
[
43,
37,
36,
34,
33,
30,
24,
23,
23,
21,
21,
21,
19,
18,
17,
17,
15,
14,
12,
12
]
]
基本上,我希望列表是:
切尔西:44岁 利物浦:37分在
等等。。。在
下面是我的python代码:
^{pr2}$我尝试过用%格式化,但没有得到任何结果!在
您可以在这里使用^{} 作为:
其中
^{pr2}$my_list
是问题中提到的列表。为了以dict
的形式映射这些条目,必须将zip
ed值转换为dict
为:将返回:
相关问题 更多 >
编程相关推荐