摘要:
1 import os 2 import multiprocessing 3 4 5 def copy_file(q,file_name,new_folder_name,old_folder_name): 6 with open(old_folder_name + "/" + file_name,"rb") as f1, open(new_folder_name + "/" + file_name 阅读全文
摘要:
1 import multiprocessing 2 3 4 def download_from_web(q): 5 """下载数据""" 6 # 模拟下载数据 7 data = [11,22,33,44] 8 9 # 向队列写入数据 10 for temp in data: 11 q.put(temp) 12 1... 阅读全文
摘要:
阅读全文