擅长:python、mysql、java
<p>请尝试以下操作:</p>
<pre><code>second_list = [3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
third_list = second_list
for i in range(len(second_list)):
if (second_list[i] % 2 == 1):
make_even = second_list[i] + 1
third_list[i] = make_even
else:
third_list[i] = second_list[i]
print (third_list)
</code></pre>
<p>对于正在进行的GoogleColab项目,您必须对其进行调整,但这里的逻辑应该是正确的。现在这个答案在常规的Python3中有效</p>