随笔分类 -  Python

摘要:一、csv模块简介(python3.7) csv模块实现了很多类,可以用来读写csv格式的表格数据。在不知道Excel文件所用的csv格式的一些具体细节的情况下,该模块可以使得编程人员,将数据以Excel所偏好的格式写入文件,或者读取由Excel生成的文件。 二、csv用来读写序列的reader和w 阅读全文
posted @ 2019-02-14 13:33 bear_ge 阅读(2821) 评论(0) 推荐(0)
摘要:matplotlib库:一个优秀的数据可视化第三方库 文档:https://matplotlib.org/users/index.html 样例:https://matplotlib.org/gallery/index.html 一、matplotlib库简介 matplotlib由各种可视化类构成 阅读全文
posted @ 2018-08-16 13:58 bear_ge 阅读(2933) 评论(0) 推荐(0)
摘要:numpy库 英文官方文档:https://docs.scipy.org/doc/numpy/reference/arrays.ndarray.html 一、numpy库中的数组对象:N维数组类型:ndarray 1) ndarray的作用: a) 数组对象性可以去掉元素间运算所需的循环,使一维向量 阅读全文
posted @ 2018-08-15 16:38 bear_ge 阅读(3704) 评论(0) 推荐(0)
摘要:http://pandas.pydata.org/pandas-docs/stable/api.html 目录 一、pandas简介: Pandas库:python的第三方库,提供高性能数据类型和分析工具。 简单说就是,便于操作的数据类型,很多的分析函数和分析工具; Pandas的引用: impor 阅读全文
posted @ 2018-08-15 15:32 bear_ge 阅读(1739) 评论(0) 推荐(0)
摘要:用正则表达式匹配出来的; # 获取表单VIEWSTATE,EVENTVALIDATION的值 参数r是html def get_VIEWSTATE(r): pattern1=r'VIEWSTATE\".*value=\".*\"' match=re.search(pattern1,r).group( 阅读全文
posted @ 2018-08-10 15:28 bear_ge 阅读(2779) 评论(0) 推荐(0)
摘要:http://www.pythonexcel.com/这个网站emm,挺详细的 嗯,主要翻译一下:http://www.pythonexcel.com/python-excel-writer.php 向Excel 写入数据的库 蛮多的 ,这里主要说 下 openpyxl 库: 一、写入数据 emmm 阅读全文
posted @ 2018-08-10 15:15 bear_ge 阅读(70581) 评论(0) 推荐(0)
摘要:pyhont 信息的爬取与提取 bs4,BeautifulSoup,re库 用于对获取到的页面文本进行提取 一、BeautifulSoup库的理解:BeautifulSoup库是解析、遍历、维护"标签树"的功能库。二、BeautifulSoup类的基本元素 1、Tag:标签,最基本的信息组织单元,分 阅读全文
posted @ 2017-12-02 22:23 bear_ge 阅读(2352) 评论(0) 推荐(0)