import time
import threading
arry=[]
def thread_run():
print('====',time.ctime())
for i in range(1,10):
print('Thread running -',i)
arry.append(i)
print(arry)
arry.clear()
#csv로 출력 DataFrame.to_csv('path\\file_name.csv', sep=',', na_rep='NaN')
threading.Timer(2,thread_run).start()
thread_run()
댓글을 작성하려면 로그인해야 합니다.
slwkddp 5년 전
import time
import threading
arry=[]
def thread_run():
print('====',time.ctime())
for i in range(1,10):
print('Thread running -',i)
arry.append(i)
print(arry)
arry.clear()
#csv로 출력 DataFrame.to_csv('path\\file_name.csv', sep=',', na_rep='NaN')
threading.Timer(2,thread_run).start()
thread_run()