擅长:python、mysql、java
<pre><code>dont_need_em = []
with open("file2.csv", 'r') as fn:
for line in fn:
if not line.startswith("Email"):
dont_need_em.append(line.rstrip())
fw = open("file3.csv", 'w')
with open("file1.csv", 'r') as fn:
for line in fn:
if line.rstrip().split(", ")[1] not in dont_need_em:
fw.write(line.rstrip())
fw.close()
</code></pre>
<p>这应该可以做到,但我相信有更简单的解决办法</p>
<p>编辑:创建第三个文件</p>