摘要: pip install xlwings代码如下:import osimport xlwings as xwsheetname = input('输入指定工作表:')filelist = os.listdir()app = xw.App(visible=True, add_book=False)for 阅读全文
posted @ 2022-01-10 16:20 乡镇做题家 阅读(257) 评论(0) 推荐(0)
摘要: pip install xlwings代码如下:import osimport xlwings as xwfilelist = os.listdir()app = xw.App(visible=True, add_book=False)for file in filelist: try: if os 阅读全文
posted @ 2022-01-10 16:18 乡镇做题家 阅读(77) 评论(0) 推荐(0)
摘要: 代码如下:import itertoolsimport timeitems = '1234567890'password = itertools.product(items, repeat=6)start = time.time()with open('password6.txt', 'w', en 阅读全文
posted @ 2022-01-10 16:16 乡镇做题家 阅读(149) 评论(0) 推荐(0)
摘要: pip install pdf2docx代码如下:from pdf2docx import parseimport osfiles = os.listdir()for file in files: if os.path.splitext(file)[1] == '.pdf': parse(f'{os 阅读全文
posted @ 2022-01-10 16:14 乡镇做题家 阅读(68) 评论(0) 推荐(0)
摘要: 安装wordcloud,jiebawordcloud去这里安装Python Extension Packages for Windows - Christoph Gohlke (uci.edu)代码如下import wordcloudimport jiebazhuci_list = ['的', '是 阅读全文
posted @ 2022-01-10 16:13 乡镇做题家 阅读(48) 评论(0) 推荐(0)
摘要: Python 序列化和反序列化库 MarshMallow 的用法 | 静觅 (cuiqingcai.com) 阅读全文
posted @ 2022-01-10 16:07 乡镇做题家 阅读(30) 评论(0) 推荐(0)
摘要: 有时候我们会有这样的一个需求: 我们定义了一个 Python 的方法,方法接收一些参数,但是调用的时候想将这些参数用命令行暴露出来。 比如说这里有个爬取方法: import requests def scrape(url, timeout=10): response = requests.get(u 阅读全文
posted @ 2022-01-10 16:01 乡镇做题家 阅读(109) 评论(0) 推荐(0)
摘要: 用到的模块是python自带的itertools模块 有以下几个函数: count()函数:产生递增序列,eg count(1,5),生成从1开始的循环器,每次增加5,即1,6,11,...。 repeat()函数:重复元素,构成无穷循环器,eg repeat(100),即100,100,100,. 阅读全文
posted @ 2021-12-30 21:15 乡镇做题家 阅读(684) 评论(0) 推荐(0)
摘要: 实验环境 mysql5.7.26 kali2021.3 修改mysql的my.ini文件 设置my.ini max_connections=1000max_connection_errors=1000connect_timeout=1000 使用kali的hydra进行爆破 命令: hydra -l 阅读全文
posted @ 2021-12-23 19:22 乡镇做题家 阅读(1551) 评论(0) 推荐(0)
摘要: 记录自己学习到的弱口令的一点知识 阅读全文
posted @ 2021-10-11 10:55 乡镇做题家 阅读(128) 评论(0) 推荐(0)