擅长:python、mysql、java
<p>您可以将这两列转换为大小相等的列表,并使用clu查找答案和线索</p>
<pre><code>function(ans,clu)
ignorelist = []
result = []
for answer in ans: #main loop, ans by answer
counter = 0
index_lists = []
ignorelist = []
for index in range(len(ans)):
if ans[index] = answer and clu[index] not in ignorelist
ignorelist.append(clu[index])
counter = counter + 1
index_lists.append(index)
if counter >=5
result.append(index_lists)
return list(dict.fromkeys(result))
</code></pre>
<p>这是未经测试的,我还没有看到你的数据,但希望它能有所帮助</p>