擅长:python、mysql、java
<p>您可以使用如下列表:</p>
<pre><code>lst = []
for search_result in search_results:
lst.append(
Levenshtein.jaro_winkler(
exhibitor_name,
urlparse(search_results).netloc.encode('utf-8')))
</code></pre>
<p>这假设您还使用了一个列表<code>search_results</code>,而不是所有独立的<code>search_resultN</code>变量。你知道吗</p>