Skip to content

Instantly share code, notes, and snippets.

@zhiyue
Created July 30, 2016 00:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhiyue/7c4b4f5e78a1f4df6ce806807bf80c18 to your computer and use it in GitHub Desktop.
Save zhiyue/7c4b4f5e78a1f4df6ce806807bf80c18 to your computer and use it in GitHub Desktop.
append to set
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