![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
zhuJH_csdn
这个作者很懒,什么都没留下…
展开
-
爬虫——数据处理
## 把所有文档中的元素载入一个列表,行数据为一个元素import redef txt_reading1(txt): # txt为带读取文件地址 with open(txt,'r') as f: line = f.readlines() # 完成列表载入,但是每个项后会存在 '\n' g=len(l...原创 2018-11-19 18:35:31 · 1137 阅读 · 0 评论 -
基础爬虫程序与附加伪装与代理的爬虫文件
import urllib.requestimport reimport timeimport randomdef gethtml(url): page = urllib.request.urlopen(url) html = page.read() return htmldef search_html(massage,html): # mass...原创 2018-11-19 23:02:11 · 268 阅读 · 3 评论 -
机械学习——学习进度记录
python-mod 记录https://github.com/zjh199585/Python3/tree/master/mod GitHub自保存记录已完成的相关程序段Python有无代理的简单爬虫程序https://blog.csdn.net/zhuJH_csdn/article/details/84261876Python基于已有爬虫数据的数据处理程序https://blog....原创 2018-11-23 13:40:08 · 490 阅读 · 0 评论 -
基于 linear model 的口袋妖怪cp值预测(课堂作业练习)
import matplotlib.pyplot as pltimport numpy as npx_data=[338.,333.,328.,207.,226.,25.,179.,60.,208., 606.]y_data=[640.,633.,619.,293.,428.,27.,193.,66.,226.,1591.]# data.............................原创 2018-11-23 14:20:40 · 275 阅读 · 0 评论 -
关于房屋合理售价的线性拟合处理
import xlrdimport numpy as npimport rexls_file = "/Users/zhuji/Desktop/链家二手房房源信息采集.xlsx"book = xlrd.open_workbook(xls_file)sheet1 = book.sheet_by_index(0)nrows = sheet1.nrowsshuju = []need_nu...原创 2018-11-30 11:03:20 · 225 阅读 · 0 评论