Python 多线程示例:
from threading import Thread
def fun(var):
pass
Thread(target = fun, args=(5,)).start()
Attention:
Thread(fun())为初始化,如正常函数般正常运行
Python 多线程示例:
from threading import Thread
def fun(var):
pass
Thread(target = fun, args=(5,)).start()
Attention:
Thread(fun())为初始化,如正常函数般正常运行