擅长:python、mysql、java
<p>也许<code>numpy</code>对于这样的事情很有用,如果您的三个列表是2D <code>numpy.array</code>,那么删除指定的列将非常容易。你知道吗</p>
<pre><code>a = [3,4,5,12,6,8,78,5,6]
b = [6,4,1,2,8,784,43,6,2]
c = [8,4,32,6,1,7,2,9,23]
big_array = np.array([a,b,c])
d = [8,5,3]
</code></pre>
<p>结果:</p>
<pre><code>>>> big_array
array([[ 3, 4, 5, 12, 6, 8, 78, 5, 6],
[ 6, 4, 1, 2, 8, 784, 43, 6, 2],
[ 8, 4, 32, 6, 1, 7, 2, 9, 23]])
>>> np.delete(big_array, d, axis=1)
array([[ 3, 4, 5, 6, 78, 5],
[ 6, 4, 1, 8, 43, 6],
[ 8, 4, 32, 1, 2, 9]])
</code></pre>