python 多线程获取函数返回值
继承threading.Thread类,添加get_result方法def strTest(strName): strText = strName + " test" print("strTest func....") return strText, strNameclass MyThread(threading.Thread): def __init__(self, func, args): super().__init__() se
原创
2021-05-08 10:40:12 ·
358 阅读 ·
0 评论