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

上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 28 下一页
摘要: 1.将word文档转为html操作,通过bs4中的 BeautifulSoup 提取html中所需要的内容 步骤一:下载bs4 和 pydocx 并且引入 pip install bs4pip install pydocx # 读取word中的内容from pydocx import PyDocX 阅读全文
posted @ 2021-03-09 10:12 升级打怪 阅读(1362) 评论(0) 推荐(0) 编辑
摘要: Python List sort()方法 sort()方法语法: list.sort(cmp=None, key=None, reverse=False) 参数: cmp -- 可选参数, 如果指定了该参数会使用该参数的方法进行排序。 key -- 主要是用来进行比较的元素,只有一个参数,具体的函数 阅读全文
posted @ 2021-03-09 09:43 升级打怪 阅读(2733) 评论(0) 推荐(0) 编辑
摘要: os.path.abspath(os.path.dirname(__file__))) 阅读全文
posted @ 2021-02-22 13:50 升级打怪 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 引用:https://blog.csdn.net/u012119316/article/details/89671681 阅读全文
posted @ 2021-02-08 17:20 升级打怪 阅读(239) 评论(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 升级打怪 阅读(2345) 评论(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 升级打怪 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 引用:https://blog.csdn.net/lxh_worldpeace/article/details/106129132 阅读全文
posted @ 2021-02-08 12:45 升级打怪 阅读(123) 评论(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 升级打怪 阅读(853) 评论(0) 推荐(0) 编辑
摘要: 引用:https://blog.csdn.net/lxh_worldpeace/article/details/106129132 阅读全文
posted @ 2021-02-01 18:27 升级打怪 阅读(621) 评论(0) 推荐(0) 编辑
摘要: # 词性标注 nltk中的词性标注 将每个词的词性标注出来 # tagged = nltk.pos_tag(text1) # print(tagged) 阅读全文
posted @ 2021-01-30 17:16 升级打怪 阅读(1012) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 28 下一页