- 博客(5)
- 收藏
- 关注
原创 〈搬丨自用〉Python贝壳网新房信息做可视化分析
**代码编写平台:**jupyter notebook**选用数据:**贝壳网广州地区的房源信息**第一部分:**爬取房源信息代码〈这部分代码网上有很多〉import randomimport requestsfrom bs4 import BeautifulSoupfrom time import sleepimport pandas as pd USER_AGENTS = [ "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1
2021-09-23 22:50:40
850
1
原创 〈搬丨自用〉【修改版】腾讯云函数实现每日天气推送
天气接口API:http://t.weather.itboy.net/api/weather/city/ + 城市代码城市代码查询入口:https://where.heweather.com/index.html#!/usr/bin/python3#coding=utf-8 import requests, json spkey = 'xxxxxxxxxxxx' #https://qmsg.zendee.cn ---> 去这个地址注册,获取key,然后添加绑定机器人def g
2021-09-20 19:14:56
1059
1
原创 〈搬丨自用〉Python建立自己炒股规则
如果大家需要取得股票数据,推荐这个全免费的包。1.安装包pip install baostock2.提供的功能股票数据日、周、月K线数据,时间范围:1990-12-19至今。5、15、30、60分钟K线数据,时间范围:1999-07-26至今。指数数据日、周、月K线已经包含指数:综合指数,规模指数,一级行业指数,二级行业指数,策略指数,成长指数,价值指数,主题指数,基金指数,债券指数。时间范围:2006-01-01至今。季频财务数据已经包含的财务数据:部分上市公司资产负债信息、
2021-09-20 12:48:58
305
原创 〈搬丨自用〉 Python 增量备份
参数1是源目录(要备份的目录)参数2是目标目录(备份保存到的目录)import hashlibdef md5(file_path):#------判断文件的MD5-------↓ if os.path.isdir(file_path): return '1' read_file=open(file_path,mode='r',errors='ignore') the_hash=hashlib.md5() for line in read_file.
2021-09-20 12:33:39
233
原创 〈搬丨自用〉Python数据结构 二叉树的遍历
先定义二叉树的class#二叉树class BiTree: def __init__(self, data, lchild=None,rchild=None,root=None): self.__data=data # 左节点 if isinstance(lchild, BiTree): self.lchild = lchild
2021-09-20 12:11:08
94
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人