import threading
import time
# 시뮬레이션을 위한 대기 설정 목적
def my_job():
print("Starting job...")
time.sleep(5) # 작업 시뮬레이션을 위해 5초 대기
# 코드 내용 자유롭게 기술
print("Job completed!")
my_thread = threading.Thread(target=my_job)
my_thread.start()
print("Main thread continues while the background thread is running...")
큰 도움이 되었습니다, 감사합니다.