摘要:
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)

浙公网安备 33010602011771号