Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- import threading
- class TestThread (threading.Thread):
- def __init__(self):
- threading.Thread.__init__(self)
- self.daemon = True
- self.start()
- def run(self):
- while True:
- print([1,2,3])
- thread = TestThread()
- while True:
- time.sleep(1)
Advertisement
Add Comment
Please, Sign In to add comment