import threading
def test(x,y):
for i in range(x,y):
print(i)
thread1 = threading.Thread(name=‘t1’,target=test,args=(0,5))
thread2 = threading.Thread(name=‘t2’,target=test,args=(5,10))
thread1.start(http://www.guzikanqiu.com/)
thread2.start()
import threading
def test(x,y):
for i in range(x,y):
print(i)
thread1 = threading.Thread(name=‘t1’,target=test,args=(0,5))
thread2 = threading.Thread(name=‘t2’,target=test,args=(5,10))
thread1.start(http://www.guzikanqiu.com/)
thread2.start()