Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from threading import Thread
- class a:
- def Exit(self):
- exit()
- def what(self):
- self.w =Thread(target=self.Exit)
- self.w.start()
- self.w.join()
- a().what()
- input("Enter something:")
- -------__Error------------
- zenix@linux-xk05:~/Desktop> python image.py
- Enter something:Traceback (most recent call last):
- File "image.py", line 15, in <module>
- input("Enter something:")
- ValueError: I/O operation on closed file.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement