import time s = "a" * 10000 f = open("test.txt", "a") for i in range(10): time.sleep(1) print(1) f.write("{}\n".format(s)) f.flush() f.close()
Standard input is empty
Standard output is empty
Traceback (most recent call last): File "prog.py", line 3, in <module> f = open("test.txt", "a") IOError: [Errno 13] Permission denied: 'test.txt'