Created
July 30, 2016 00:57
-
-
Save zhiyue/7c4b4f5e78a1f4df6ce806807bf80c18 to your computer and use it in GitHub Desktop.
append to set
This file contains 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
a = set(open("a.txt").readlines()) | |
b = set(open("b.txt").readlines()) | |
c = b - a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment