摘要: 查看函数执行时长的装饰器 import arrow def runtime(func): def call_func(*args, **kwargs): begin_time = arrow.now().float_timestamp ret = func(*args, **kwargs) end_ 阅读全文
posted @ 2021-05-19 00:03 介个车车烫屁股 阅读(68) 评论(0) 推荐(0)
摘要: 一、桌面类 1.Excel 不用过多介绍了,用户基数大,BI首选,可以说不会Excel的BI,不是合格的BI. 2.Tableau 比较老牌的可视化工具,可以说国内很多可视化工具都有受到Tableau影响 优点: 1.教程多,毕竟是老牌,用的人比较多。如需教程,在B站搜就能搜到很多。 2.支持Pyt 阅读全文
posted @ 2021-05-18 23:57 介个车车烫屁股 阅读(1296) 评论(0) 推荐(0)
摘要: 推荐的核心主要是内容质量评价和推荐逻辑优化,即如何判断哪些内容是好的内容,如何将好的内容推荐给对应的用户。 内容质量评价 内容质量评价一般关注CTR、CVR、跳失率等指标即可,但在计算的过程中,需要考虑量纲、异常值、1/1问题以及权重。消除量纲影响可以通过归一化或标准化等方法处理;异常值可以通过箱线 阅读全文
posted @ 2021-05-18 22:46 介个车车烫屁股 阅读(67) 评论(0) 推荐(0)
摘要: import pyzbar.pyzbar as pyzbar from PIL import Image,ImageEnhance import requests def download_img(imgname,url): """下载网页图片""" r = requests.get(url,str 阅读全文
posted @ 2021-05-18 22:43 介个车车烫屁股 阅读(221) 评论(0) 推荐(0)
摘要: 方法一 镜像站:github.com.cnpmjs.org 用法:直接用 "github.com.cnpmjs.org" 代替 "github.com" 即可 方法二: 镜像站:https://gitclone.com/ 欲克隆:git clone https://github.com/tomasr 阅读全文
posted @ 2021-05-18 22:41 介个车车烫屁股 阅读(79) 评论(0) 推荐(0)
摘要: 配置文件,名称为config.py #config.py rds_v1 = { "host": "127.0.0.1", "user": "root", "password": "12345678", "database": "users", "port": 3306 } 类对象内容 #databa 阅读全文
posted @ 2021-05-17 20:10 介个车车烫屁股 阅读(84) 评论(0) 推荐(0)
摘要: 安装yagmail库 #windows系统 pip install yagmail #苹果或linux系统 pip3 install yagmail 导入yagmail库及配置邮箱(以腾讯企业邮箱为例) import yagmail #链接邮箱服务器 yag = yagmail.SMTP( user 阅读全文
posted @ 2021-05-08 00:03 介个车车烫屁股 阅读(475) 评论(0) 推荐(0)
摘要: 导入库 import matplotlib.pyplot as plt import numpy as np 测试数据 x = [i for i in range(1,100)] y1 = [np.log(i) for i in range(1,100)] y2 = [-np.log(i) for 阅读全文
posted @ 2021-05-08 00:01 介个车车烫屁股 阅读(149) 评论(0) 推荐(0)
摘要: openpyxl是一个读写xlsx文件的Python库,能够同时读取和修改Excel文档。 安装openpyxl库 #windows系统 pip install openpyxl #苹果或linux系统 pip3 install openpyxl 导入openpyxl from openpyxl i 阅读全文
posted @ 2021-05-07 23:59 介个车车烫屁股 阅读(159) 评论(0) 推荐(0)
摘要: zepplin中使用presto %presto -- 用户信息查询 select id,name,phone,age from biz.users presto正则表达式 -- 查询中文 select regexp_extract(ext,'[\u4e00-\u9fa5]+') -- 查询电话号码 阅读全文
posted @ 2021-05-07 23:57 介个车车烫屁股 阅读(1611) 评论(0) 推荐(0)