<p>最好的方法是使用<a href="https://docs.python.org/3.5/library/functions.html#zip" rel="nofollow">^{<cd1>}</a>内置类<sup>1</sup>或函数<sup>2</sup>和<a href="https://docs.python.org/3.5/tutorial/controlflow.html#unpacking-argument-lists" rel="nofollow">^{<cd2>}</a>使用简单的赋值操作将“分数”解压到变量中。然后使用<a href="https://docs.python.org/3.5/library/functions.html?highlight=float#sum" rel="nofollow">^{<cd3>}</a>内置函数计算和。当然,您需要使用<a href="https://docs.python.org/3.5/library/functions.html?highlight=float#float" rel="nofollow">^{<cd4>}</a>和<a href="https://docs.python.org/3.5/library/functions.html?highlight=float#map" rel="nofollow">^{<cd5>}</a>将元素转换为float</p>
<pre><code>>>> score = [
... ['5.00', '4.30', '2.50', '3.60', '1.30', '5.00'],
... ['80.00', '8.00', '32.00', '13.60', '20.00', '80.00'],
... ['12.00', '6.00', '7.20', '8.40', '9.60', '12.00'],
... ['3.00', '1.20', '2.04', '1.08', '0.84', '3.00']
... ]
>>> a, b, c, d, e, f = [sum(map(float, i)) for i in zip(*score)]
>>> a
100.0
>>> b
19.5
>>> c
43.74
>>> d
26.68
>>> e
31.74
>>> f
100.0
</code></pre>
<hr/>
<ol>
<li>Python 3.x版</li>
<li>Python 2.x版</li>
</ol>