问题描述: python 3.7 跟着写了一段代码,运行后,什么错误都没有显示,也没有报错,求大神帮忙看一下
# -*- coding=utf-8 -*-
import threading
from queue import Queue
from lxml import etree
import requests
import json
class ThreadCrawl(threading.Thread):
def __init__(self, thread_name, page_queue, data_queue):
# threading.Thread.__init__(self) # 如果继承多个类, 前面就要修改了
super(ThreadCrawl, self).__init__() # 这里调用自己, 只继承一个的话,两个就没差
self.thread_name = thread_name # 线程名
self.page_queue = page_queue # 页码队列
self.d