📜  带参数的线程目标 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:37.101000             🧑  作者: Mango

代码示例1
dRecieved = connFile.readline()
processThread = threading.Thread(target=processLine, args=[dRecieved])  # <- 1 element list
processThread.start()