Advertisement

Python新版本支持多线程音乐下载

阅读量:
复制代码
 '''

    
 Description:
    
 Author: pdh
    
 Date: 2020-11-05 12:12:22
    
 LastEditors: pdh
    
 LastEditTime: 2020-11-06 14:47:55
    
 FilePath: \down\down.py
    
 '''
    
 # coding=utf-8
    
  
    
 import os
    
 import requests
    
 from concurrent.futures import ThreadPoolExecutor
    
 import threading
    
 import asyncio
    
  
    
 gLock = threading.Lock()
    
 gPool = ThreadPoolExecutor(50)
    
  
    
  
    
 def pinfo(text):
    
     global gLock
    
     gLock.acquire()
    
     print(text)
    
     gLock.release()
    
  
    
  
    
 async def downOne

全部评论 (0)

还没有任何评论哟~