![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
weiwin_Murphy
这个作者很懒,什么都没留下…
展开
-
批量合并excel表内容,保存在新的excel表内
主要是把指定文件夹下不同时间生成具有相同规律的excel文件汇总到一个新的excel内,可以用作后续分析使用获取指定路径下的具有相同后缀名的文件集合,这里是当前目录下的所有的保存格式为xlsx的文件的集合import osfrom glob import globdef get_all_excel(): paths = glob(r'./*.xlsx') files = [] for path in paths: file = os.path.basename(path) print原创 2021-06-08 21:07:08 · 250 阅读 · 0 评论 -
批量下载验证码
python从知网上下载验证码 保存到本地#!/bin/python#coding="utf-8"import requestsfrom lxml import etreeimport osimport timepicPath = 'D:\\py\\murphy\\tesseract\\pic'URL = 'http://my.cnki.net/elibregister/commonRegister.aspx#'headers = { 'User-Agent':'Mozilla原创 2021-03-31 15:26:12 · 495 阅读 · 0 评论