随笔- 310  文章- 1  评论- 0  阅读- 85655 
11 2020 档案
python实现进度条
摘要:tqdm库 #!/usr/bin/env python3 # -*- coding: utf-8 -*- # pip3 install tqdm import time from tqdm import tqdm for i in tqdm(range(10)): time.sleep(0.5) 阅读全文
posted @ 2020-11-25 23:52 boye169 阅读(101) 评论(0) 推荐(0) 编辑
linux 下获取文件名的md5值
摘要:获取文件名的md5值 find test.txt -type f -print|xargs md5sum 阅读全文
posted @ 2020-11-12 00:55 boye169 阅读(333) 评论(0) 推荐(0) 编辑
linux下 批量压缩与批量解压
摘要:批量压缩文件 ls |xargs -ti tar -zcvf {}.tar.gz {} 批量解压文件 ls *.tar.gz|xargs -n1 tar -zxvf 阅读全文
posted @ 2020-11-12 00:49 boye169 阅读(2085) 评论(0) 推荐(0) 编辑
linux下批量新建/删除 文件或目录
摘要:linux下使用通配符创建文件或目录 touch file{1..5}.txt mkdir dir_{1..5} 批量删除文件或目录 rm -rf file{1..5}.txt ls |xargs -i rm -rm {} 阅读全文
posted @ 2020-11-12 00:40 boye169 阅读(1510) 评论(0) 推荐(0) 编辑
python——pip导出导入安装包
摘要:pip 导出安装包 pip freeze > requirements.txt pip 在线安装 pip install -r requirement.txt pip离线安装 注:离线安装需要提前下载所需的*.whl文件(https://pipy.org) pip install --find-li 阅读全文
posted @ 2020-11-12 00:28 boye169 阅读(1884) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示