Guest User

Untitled

a guest
Jan 24th, 2015
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. import time
  2. import threading
  3.  
  4. class TestThread (threading.Thread):
  5. def __init__(self):
  6. threading.Thread.__init__(self)
  7. self.daemon = True
  8. self.start()
  9.  
  10. def run(self):
  11. while True:
  12. print([1,2,3])
  13.  
  14. thread = TestThread()
  15. while True:
  16. time.sleep(1)
Advertisement
Add Comment
Please, Sign In to add comment