Advertisement
Guest User

pythonwaitfortwitter

a guest
Mar 20th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement