# 定义两个函数
import threading
def Down_Moive1(delay):
def Down_Moive2(delay):
#两个线程同时执行两个函数
thread_1 = threading.Thread(target=Down_Moive1, args=(2,))
thread_2 = threading.Thread(target=Down_Moive2, args=(2,))
thread_1.start()
thread_2.start()
Python多线程
最新推荐文章于 2024-03-28 14:05:33 发布