04 2020 档案

摘要:1、网页URL: http://www.shicimingju.com/book/sanguoyanyi.html 接着安装requests库和BeautifulSoup4这两个库 通过调用BeautifulSoup对象中相关的属性或者方法进行标签定位和数据提取。 快捷键[Ctrl+Shift+C] 阅读全文
posted @ 2020-04-14 16:35 贾昕潼 阅读(1055) 评论(1) 推荐(1) 编辑
摘要:【领域文章来源】: 通过百度查找的《三国演义》,下载,在本地自己创建txt文件。注:用encoding=utf-8 【源代码】: import jieba excludes = {"来到","人马","领兵","将军","却说","荆州","二人","不可","不能","如此"} txt = ope 阅读全文
posted @ 2020-04-10 16:31 贾昕潼 阅读(3298) 评论(0) 推荐(0) 编辑