daily pastebin goal
0%
SHARE
TWEET

pythonwaitfortwitter

a guest Mar 20th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. main.py
  2.  
  3. import one
  4. import two
  5. from threading import Thread
  6.  
  7. # while True:
  8. one.one().start()
  9. two.two().start()
  10.     # pass
  11.  
  12. one.py
  13. import time
  14. from threading import Thread
  15.  
  16. class one(Thread):
  17.     def run(self):
  18.         while True:
  19.             print("i am one!")
  20.             time.sleep(1)
  21.             pass
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