Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- import threading
- class Uno():
- def __init__(self, num):
- for i in range(0,10):
- print(num)
- time.sleep(1)
- if __name__ == '__main__':
- z = threading.Thread(target=Uno, args=(1,))
- z.start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement