![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
goose leaves a mark
这个作者很懒,什么都没留下…
展开
-
python 实现图片自动化压缩(用到的是Optimizilla工具)
之前一直是利用tinypng进行自动化压缩图片的,但是最近tinypng网站访问出现了问题,所以不得不找其他的工具进行图片的压缩,发现Optimizilla也是一款不错的图片压缩工具 利用python实现图片自动化压缩功能: 1:安装Optimizilla-cli npm i optimizilla-cli -g optimizilla [FILENAME] Options --...原创 2019-12-16 20:09:21 · 574 阅读 · 0 评论 -
python 快速排序和插入排序比较
#coding=utf-8 #插入排序 import time testArr = [5,3,2,7,8,0,22,32,-1]; arrLen = testArr.__len__(); def insertSort(arr): for num in range(1,arrLen): #比较的标准 stand = arr[num]; for...原创 2018-10-28 21:10:07 · 493 阅读 · 0 评论 -
python 使用shutil.rmtree出现不安全的错误
解决方法:看一下老外是怎么解决的:解决办法 部分代码: def readonly_handler(func,path,execinfo): os.chmod(path,128) func(path); def copyToTarget(oldPath,newPath): global absPath; tempNewPath =...转载 2019-07-20 16:17:07 · 2693 阅读 · 1 评论