Notice
Recent Posts
Recent Comments
Link
목록threading] (1)
아미(아름다운미소)
파이썬 스케줄러를 지속적으로 돌리기위한 방법{python threading}
5 초간 휴면 상태의 스레드를 사용할 수 있습니다. import threading, time def worker(): i = 0 while (True): print 'do something ... ' + str(time.time()) time.sleep(5) i += 1 if i > 5: break t = threading.Thread(target=worker) print time.time() t.start() print time.time()
랭귀지/python
2018. 11. 12. 16:20