摘要: 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 天天见和 阅读(355) 评论(0) 推荐(0) 编辑