test.py 171 B

12345678910
  1. import threading
  2. def worker():
  3. """thread worker function"""
  4. print ('Worker')
  5. return
  6. for i in range(5):
  7. t = threading.Thread(target=worker)
  8. t.start()