Guest User

Untitled

a guest
Apr 10th, 2021
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. import time
  2. import threading
  3.  
  4. def func():
  5.     print("hi", threading.get_ident())
  6.  
  7. if __name__ == "__main__":
  8.     print(__name__)
  9.     while True:
  10.         func()
  11.         time.sleep(1)
  12.  
  13.  
Advertisement
Add Comment
Please, Sign In to add comment