擅长:python、mysql、java
<p>打印结果是一个<strong>生成器</strong>,您需要将列表理解放在列表符号(<code>[]</code>)中或使用<code>list()</code>函数,
您还需要检查索引而不是值,这样您就可以用<a href="https://docs.python.org/3/library/functions.html?highlight=enumerate#enumerate" rel="nofollow">^{<cd3>}</a>来计算:</p>
<pre><code>>>> print ([j for i,j in enumerate(list) if i not in i_to_skip] )
['b', 'd']
</code></pre>