import threading #多线程
def repeat(i):
i=i+1
print('执行次数:',i)
t = threading.Timer(1, repeat,[i]) #[i] 是repeat参数
t.start()
repeat(0)
import threading #多线程
def repeat(i):
i=i+1
print('执行次数:',i)
t = threading.Timer(1, repeat,[i]) #[i] 是repeat参数
t.start()
repeat(0)