擅长:python、mysql、java
<p>您确定您的组件是<code>ints</code>的列表吗?<code>[229 196]</code>应该引发语法错误。你知道吗</p>
<p>如果您确实在使用int列表,那么以下操作应该可以工作:</p>
<pre><code>A.index([229, 196])
A.index([242, 148])
</code></pre>
<p>否则请尝试:</p>
<pre><code>A.index(["229 196"])
</code></pre>
<p>如果不确定类型,请尝试:</p>
<pre><code>type(A[0]) # first item in list
type(A[0][0]) # first item within first item of list
</code></pre>