会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
topass123
道阻且长,行则将至,行而不辍,未来可期
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
13
14
15
16
17
18
19
20
21
···
44
下一页
2020年7月10日
爬虫-request(3)
摘要: import requests # GET请求 r = requests.get('http://httpbin.org/get') print(r.status_code, r.reason) print('GET请求', r.text) # 带参数的GET请求 r = requests.get(
阅读全文
posted @ 2020-07-10 07:39 topass123
阅读(152)
评论(0)
推荐(0)
编辑
2020年7月9日
爬虫-urllib的使用(2)
摘要: import urllib.request import json # 接收一个字符串作为参数 r = urllib.request.urlopen('http://httpbin.org/get') # 读取response的内容 text = r.read() print(text) # htt
阅读全文
posted @ 2020-07-09 23:05 topass123
阅读(143)
评论(0)
推荐(0)
编辑
爬虫数据抓取(1)
摘要: curl的使用 注意:安装的时候可能会遇到报错,有可能是openssl没装, ```bash apt install curl apt install openssl apt install openssl-dev ``` View Code 一些常用参数的用法 | 参数 | 说明 | 示例 | |
阅读全文
posted @ 2020-07-09 08:46 topass123
阅读(150)
评论(0)
推荐(0)
编辑
2020年7月7日
一道算法
摘要: 112. 路径总和 给定一个二叉树和一个目标和,判断该树中是否存在根节点到叶子节点的路径,这条路径上所有节点值相加等于目标和。 说明: 叶子节点是指没有子节点的节点。 示例: 给定如下二叉树,以及目标和 sum = 22, 5 / \ 4 8 / / \ 11 13 4 / \ \ 7 2 1 返回
阅读全文
posted @ 2020-07-07 06:57 topass123
阅读(113)
评论(0)
推荐(0)
编辑
2020年7月4日
MySQL与数据分析(7)
摘要: # -*- coding: utf-8 -*- """ Created on Thu Aug 27 08:46:26 2015 @author: TBKKEN """ import os; import pandas; import MySQLdb; import matplotlib; impor
阅读全文
posted @ 2020-07-04 22:39 topass123
阅读(122)
评论(0)
推荐(0)
编辑
基本统计-数据分析(6)
摘要: from pandas import read_csv; data = read_csv('8.1\\data.csv') #显示所用的可用参数 data.score.describe() #参数的使用如下 data.score.size data.score.max() data.score.mi
阅读全文
posted @ 2020-07-04 22:31 topass123
阅读(98)
评论(0)
推荐(0)
编辑
网页信息数据-数据分析(6)
摘要: import urllib.request; from bs4 import BeautifulSoup; response = urllib.request.urlopen("file:///C:6.1/html.html") html = response.read() html soup =
阅读全文
posted @ 2020-07-04 22:15 topass123
阅读(100)
评论(0)
推荐(0)
编辑
条形图-数据分析(5)
摘要: # -*- coding: utf-8 -*- import numpy; import matplotlib; from pandas import read_csv; from matplotlib import pyplot as plt; font = { 'family' : 'SimHe
阅读全文
posted @ 2020-07-04 21:37 topass123
阅读(157)
评论(0)
推荐(0)
编辑
图数据分析(4)
摘要: 散点图 import matplotlib; from pandas import read_csv; import matplotlib.pyplot as plt; data = read_csv("5.1\\data.csv") #设置使用的字体(需要显示中文的时候使用) font = { '
阅读全文
posted @ 2020-07-04 13:17 topass123
阅读(119)
评论(0)
推荐(0)
编辑
2020年7月2日
读取,导入等文件csv处理(3)
摘要: ''' read_csv:从文件,url,文件型对象中加载带分隔符的数据,默认分隔符为逗号 read_table:从文件,url,文件型对象中加载带分隔符的数据,默认分隔符为制表符("\t") 实质上是通用的,都是返回一个DataFrame,在实际使用中可以通过对sep参数的控制来对任何文本文件读取
阅读全文
posted @ 2020-07-02 21:50 topass123
阅读(200)
评论(0)
推荐(0)
编辑
上一页
1
···
13
14
15
16
17
18
19
20
21
···
44
下一页