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