摘要: 使用Beautiful Soup库,先看一个例子: #利用beautiful soup解析网页源代码 #首先利用requests库获取网页源代码 import requests url='https://python123.io/ws/demo.html' r=requests.get(url) r 阅读全文
posted @ 2018-03-26 11:09 歪胡子的日常 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 当输入的文件是csv文件时,我们有一下几种打开方式: 1、 2、 3、 4、将csv的文件转为数组类型 注意:使用genfromtxt时,需要保证文件里没有中文,这应该怎么处理? 阅读全文
posted @ 2018-03-26 11:08 歪胡子的日常 阅读(238) 评论(0) 推荐(0) 编辑