代码有点乱,先这样 # -*- coding:utf-8 -*- #__author__ :kusy #__content__:文件说明 #__date__:2018/11/01 11:01 import urllib.request, urllib.parse, urllib.error import os import re import time import threading # fileno = 0 # lock = threading.Lock() def mkdir(dir):…