Advertisement
Guest User

Untitled

a guest
Jul 18th, 2013
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. import time
  2. import threading
  3.  
  4. class Uno():
  5.     def __init__(self, num):
  6.         for i in range(0,10):
  7.             print(num)
  8.             time.sleep(1)
  9.        
  10.  
  11. if __name__ == '__main__':
  12.     z = threading.Thread(target=Uno, args=(1,))
  13.     z.start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement