Last active
May 15, 2018 12:23
-
-
Save 1951FDG/668cd69a359259a9c380c1e1b6ed5baa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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