Source Code:
(back to article)
import threading def worker(num): print("Worker thread", num) thread = threading.Thread(target=worker, args=(1,)) thread.start()
Result:
Report an issue