Newer
Older
PythonProxy / ProxyThread.py
# 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)