擅长:python、mysql、java
<p>您可以使用<code>itertools.zip_longest</code>和<code>sum</code>:</p>
<pre><code>from itertools import zip_longest as _zip
d = ['asdfd', 'hingry', 'hungre', ' hangrr']
word = 'hungry'
results = [i for i in d if sum(a == b for a, b in _zip(i, word)) >= len(word)-1]
</code></pre>
<p>输出:</p>
<pre><code>['hingry', 'hungre']
</code></pre>