
娱乐
「已注销」
这个作者很懒,什么都没留下…
展开
-
python自动升级三方库
#!/usr/bin/python# -*- coding: utf-8 -*-import sysimport subprocess# 由于pip内置对象已失效,自己做了一个自动升级三方库的脚本# from pip._internal.utils.misc import get_installed_distributions# 备份三方文件放到桌面# call("pip freeze > requirements.txt", shell=True)# 三方文件直接安装# ca.原创 2022-01-01 23:18:22 · 626 阅读 · 0 评论 -
python三方库升级,安装,备份
#!/usr/bin/python# -*- coding: utf-8 -*-import pipfrom pip._internal.utils.misc import get_installed_distributionsfrom subprocess import call# 罗列所有的三方库for dist in get_installed_distributions(): print(dist.project_name)# 将三方文件放到桌面# call("pip .原创 2021-04-22 01:53:29 · 270 阅读 · 0 评论 -
多进程爬取P站图片
# coding=utf-8import requestsfrom lxml import etreeimport osimport time# 导入线程池包from concurrent.futures import ProcessPoolExecutorimport random"""这里我们直接爬取P站图片内容。排行榜原始地址https://i.pximg.net/ c/240x480 /img-master/img/2021/04/14/00/00/04/89135748.原创 2021-04-18 22:12:47 · 2225 阅读 · 1 评论 -
excel工作簿打开密码破解
# coding=utf-8from win32com.client import DispatchExfrom random import choiceimport string"""仅供娱乐。本方案只针对excel workbook密码,至于word,worksheet破解有漏洞哦。真想破解。。。傻瓜操作,网上有不少跑字典的软件,都可以试试。找软件漏洞,找字典跑,用C去写穷举。"""def read_excel_password(filename, password=None).原创 2021-03-18 15:15:53 · 3175 阅读 · 0 评论