擅长:python、mysql、java
<pre><code>>>> example_list = ["banana", "apple", "orange"]
>>> with open("picturesLog.txt") as f:
... seen = set(map(str.strip, f))
... for fruit in set(example_list) - seen:
... print(fruit)
...
orange
</code></pre>