Advertisement
MiguelazoDS

Untitled

Sep 13th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. def testThread(num):
  2.     print num
  3.  
  4. if __name__ == '__main__':
  5.     for i in range(5):
  6.         t = threading.Thread(target=testThread, arg=(i,))
  7.         t.start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement