fork download
  1. f = open("file_a_100000", "r")
  2. a = f.readlines()
  3.  
  4. f = open("file_b_100000", "r")
  5. b = f.readlines()
  6.  
  7. d = {}
  8. for x in a:
  9. d[x] = 0
  10.  
  11. for x in b:
  12. if d.has_key(x):
  13. d.pop(x)
  14. a = d.keys()
  15.  
  16. f = open("file_c_100000", "w")
  17. for x in a:
  18. f.write(x + "\n")
  19.  
Runtime error #stdin #stdout #stderr 0.01s 7892KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "prog.py", line 1, in <module>
IOError: [Errno 2] No such file or directory: 'file_a_100000'