随笔分类 - 经典代码片段
摘要:import threading import time import requests import json from queue import Queue from lxml import etree class CrawlThread(threading.Thread): '''doc string for crawl thread''' def __init__(self, name,
阅读全文
摘要:https://juejin.im/post/5ac61da66fb9a028c71eae1b
阅读全文
摘要:git rm -r --cached . git add . git commit -m 'update .gitignore'
阅读全文
摘要:循环中执行setTimeout代码,1,2为并行,不保证执行顺序,效率高
阅读全文
摘要:var arr = [1000, 3000, 500]; function next() { var d = jQuery.Deferred(), i = 0, doNext = function () { if (i < arr.length) { console.log(arr[i] + "------...
阅读全文