不为别的,只为做一个连自己都羡慕的人

上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 28 下一页
摘要: 步骤一:下载相关依赖以及引入 pip install xlrd==1.2.0 # xlrd 1.0版本才支持xlsx文件,先版本支持的是xls,所以在下载依赖库的时候,需要注意版本以及读取文件的后缀名 import xlrd 步骤二: 读取excel内容 data = xlrd.open_workb 阅读全文
posted @ 2021-03-09 10:17 升级打怪 阅读(183) 评论(0) 推荐(0)
摘要: 1.将word文档转为html操作,通过bs4中的 BeautifulSoup 提取html中所需要的内容 步骤一:下载bs4 和 pydocx 并且引入 pip install bs4pip install pydocx # 读取word中的内容from pydocx import PyDocX 阅读全文
posted @ 2021-03-09 10:12 升级打怪 阅读(1438) 评论(0) 推荐(0)
摘要: Python List sort()方法 sort()方法语法: list.sort(cmp=None, key=None, reverse=False) 参数: cmp -- 可选参数, 如果指定了该参数会使用该参数的方法进行排序。 key -- 主要是用来进行比较的元素,只有一个参数,具体的函数 阅读全文
posted @ 2021-03-09 09:43 升级打怪 阅读(2870) 评论(0) 推荐(0)
摘要: os.path.abspath(os.path.dirname(__file__))) 阅读全文
posted @ 2021-02-22 13:50 升级打怪 阅读(156) 评论(0) 推荐(0)
摘要: 引用:https://blog.csdn.net/u012119316/article/details/89671681 阅读全文
posted @ 2021-02-08 17:20 升级打怪 阅读(251) 评论(0) 推荐(0)
摘要: def find(dir, name): # print(dir) for i in [x for x in os.listdir(dir) if os.path.isfile(os.path.join(dir, x)) and name in os.path.splitext(x)[0]]: pr 阅读全文
posted @ 2021-02-08 15:09 升级打怪 阅读(2464) 评论(0) 推荐(0)
摘要: path = "E:\\收藏夹\\C41\\C41" for filewalks in os.walk(path): pass # 生成器的输出为返回的是一个三元组(root, dirs, files),root表示当前目录,dir为当前root目录下的文件夹,files为当前root目录下的文件 阅读全文
posted @ 2021-02-08 15:08 升级打怪 阅读(201) 评论(0) 推荐(0)
摘要: 引用:https://blog.csdn.net/lxh_worldpeace/article/details/106129132 阅读全文
posted @ 2021-02-08 12:45 升级打怪 阅读(131) 评论(0) 推荐(0)
摘要: 1.再vs code中安装插件 rest client 2.然后再vs code中创建一个 .rest文件,如下图所示 3.点击Send Request,出现如下结果 注意:再做接口测试,传递参数得时候,前面需要空一行,否则会出现如下报错。 Header name must be a valid H 阅读全文
posted @ 2021-02-07 18:32 升级打怪 阅读(944) 评论(0) 推荐(0)
摘要: 引用:https://blog.csdn.net/lxh_worldpeace/article/details/106129132 阅读全文
posted @ 2021-02-01 18:27 升级打怪 阅读(645) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 28 下一页