http://stackoverflow.com/questions/15349997/assertionerror-when-threading-in-python
出错的代码:
t = threading.Thread(crawl_temp, args=(thread_count, target_url, max_depth, crawl_timeout, crawl_interval))
加上target即可:
t = threading.Thread(target=crawl_temp, args=(thread_count, target_url, max_depth, crawl_timeout, crawl_interval))
就可以了
https://blog.csdn.net/zhangruixia0108/article/details/51743456

Logo

CSDN联合极客时间,共同打造面向开发者的精品内容学习社区,助力成长!

更多推荐