diff --git a/ProxyThread.py b/ProxyThread.py new file mode 100644 index 0000000..3edbd81 --- /dev/null +++ b/ProxyThread.py @@ -0,0 +1,16 @@ +# coding=utf-8 +import threading + + +class MyThread(threading.Thread): + def __init__(self, proxy, id): + threading.Thread.__init__(self) + self.threadID = id + self.pro = proxy + + def run(self): + # print(' 开始线程:' + self.name) + self.pro.testProxy(self.threadID) + # print(self.threadID + ' 结束线程:' + self.name) + +