想要使用threading库来实现多线程运行,其中一个函数在本py文件,另一个函数是导入进来的
from Auto_test.function_test.Compare_Loop import compare_loop
def thread_com_loop(self):
thread_1 = threading.Thread(target=self.compare_loop)
thread_1.start()
目前没有思路
能把导入进来的函数作为线程1运行
通过重写run()方法来实现