import threading
import time
from threading import current_thread


def myThread(arg1, arg2):
    print(current_thread().getName, 'start')
    print('%s %s'%(arg1, arg2))
    time.sleep(1)
    print(current_thread().getName, 'stop')


for i in range(1, 6, 1):
    t1 = threading.Thread(target=myThread, args=(i, i+1))
    t1.start() # 运行程序
    # t1 = myThreayd(i, i + 1)

print(current_thread().getName(), 'end')
