daily pastebin goal
21%
SHARE
TWEET

Untitled

a guest Feb 2nd, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from threading import Thread
  2.  
  3. class a:
  4.     def Exit(self):
  5.         exit()
  6.     def what(self):
  7.         self.w =Thread(target=self.Exit)
  8.         self.w.start()
  9.         self.w.join()
  10.        
  11. a().what()
  12. input("Enter something:")
  13.  
  14.  
  15. -------__Error------------
  16. zenix@linux-xk05:~/Desktop> python image.py
  17. Enter something:Traceback (most recent call last):
  18.   File "image.py", line 15, in <module>
  19.     input("Enter something:")
  20. ValueError: I/O operation on closed file.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top