Skip to content

Instantly share code, notes, and snippets.

@1951FDG
Last active May 15, 2018 12:23
Show Gist options
  • Save 1951FDG/668cd69a359259a9c380c1e1b6ed5baa to your computer and use it in GitHub Desktop.
Save 1951FDG/668cd69a359259a9c380c1e1b6ed5baa to your computer and use it in GitHub Desktop.
import pprint
import codecs
file = codecs.open('1.csv', 'r', "utf-8")
list = file.read().split('\r\n')
file2 = codecs.open('2.csv', 'r', "utf-8")
list2 = file2.read().split('\r\n')
output = []
for object in list:
if object not in list2:
output.append(object)
for object in output:
print object.encode('utf-8')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment