摘要: import requestsfrom lxml import etreefrom pandas import DataFrame url='https://search.51job.com/list/120800,000000,0000,32,9,99,%25E4%25BA%25A7%25E5%2 阅读全文
posted @ 2019-09-22 10:02 天天见和 阅读(555) 评论(0) 推荐(0) 编辑
摘要: import requestsfrom lxml import etreeurl='https://www.baidu.com/'r=requests.get(url)r.encoding='utf-8'r.text root=etree.HTML(r.text)root.xpath('/html/ 阅读全文
posted @ 2019-09-19 19:36 天天见和 阅读(160) 评论(0) 推荐(0) 编辑
摘要: #图表 import matplotlib.pyplot as plt fig,ax=plt.subplots(2,2)ax[0,1].plot(x,y,'r--*',label='sin')ax[0,1].legend(loc='upper right')ax[0,1].grid()fig.sav 阅读全文
posted @ 2019-09-19 19:35 天天见和 阅读(352) 评论(0) 推荐(0) 编辑