Python
芒果芋猿
这个作者很懒,什么都没留下…
展开
-
Python多进程处理文件
Python多进程处理文件 Python多进程multiprocessing模块 apply_async (异步非阻塞)的方式执行函数 p.join()的意思是等待所有结果执行完毕,等待所有子进程执行完毕 import os import csv from multiprocessing import Pool path = "./xxx/" files = os.listdir(path) def function(i): list=[] with open(path+str(i),encod原创 2021-05-17 15:01:55 · 613 阅读 · 0 评论 -
anaconda常用语句
anaconda常用语句 # 新建虚拟环境 conda create -n xxx python==3.6 # 激活并进如虚拟环境 conda activate xxx # 查看所有的环境 conda env list # 查看已经安装的文件包 conda list # 下载模块 conda install xxx # 更新文件包 conda update xxx # 删除模块 conda uninstall xxx # 退出环境 conda deactivate # 删除没用的包 conda clean原创 2021-05-14 11:07:28 · 887 阅读 · 0 评论