会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
CSDN博客地址
Yi_Warmth
CSDN地址: https://blog.csdn.net/qq_39706141
博客园
首页
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
···
21
下一页
2019年12月20日
python-对小数进行操作
摘要: 浮点数的一个普遍问题是它们并不能精确的表示十进制数。 并且,即使是最简单的数学运算也会产生小的误差,比如: round函数四舍六入五平分(附四舍五入的方法) python3中round()对浮点数的取舍遵循的是四舍六入五平分 ,“五平分”就是根据取舍的位数前的小数奇偶性来判断,奇偶平分。奇数则舍弃,
阅读全文
posted @ 2019-12-20 14:44 Yi_warmth
阅读(1374)
评论(0)
推荐(0)
2019年12月17日
gevent常用用法
摘要: # 1:单核上的协程import asyncioimport timeasync def test(time): await asyncio.sleep(time)async def main(): start_time = time.time() # 创建任务 tasks = [asyncio.c
阅读全文
posted @ 2019-12-17 17:12 Yi_warmth
阅读(312)
评论(0)
推荐(0)
2019年12月12日
python3--ffmpeg视频转换工具(一)
摘要: windows版本下需要先安装ffmpeg工具: 1:先下载指定(https://ffmpeg.zeranoe.com/builds/) 有Static,Shared,Dev三个版本, 可以下载了static版本(是个zip压缩包),解压到指定目录,去配置环境变量,比如d:\ffmpeg\bin,这
阅读全文
posted @ 2019-12-12 14:06 Yi_warmth
阅读(5645)
评论(0)
推荐(0)
2019年12月11日
python-对文件及文件夹操作
摘要: 文件及文件夹的常用操作: 需要先引入shutil包 复制: shutil.copy(source, destination) #复制文件shutil.copytree(source, destination) #复制文件夹移动: shutil.move(source, destination); 删
阅读全文
posted @ 2019-12-11 19:29 Yi_warmth
阅读(241)
评论(0)
推荐(0)
2019年12月10日
python3-使用进程方式进行并发请求
摘要: 1:使用HTTP长连接的方式进行发送请求: 代码如下: import osimport requestsfrom requests.adapters import HTTPAdapterfrom requests.exceptions import ConnectionError class Ali
阅读全文
posted @ 2019-12-10 17:17 Yi_warmth
阅读(688)
评论(0)
推荐(0)
2019年9月30日
matplotlib--添加图例和注解
摘要: plt.annotate()函数解析: 参数解释: s 为注释文本内容xy 为被注释的坐标点xytext 为注释文字的坐标位置xycoords 参数如下: figure points:图左下角的点 figure pixels:图左下角的像素 figure fraction:图的左下部分 axes p
阅读全文
posted @ 2019-09-30 11:35 Yi_warmth
阅读(22561)
评论(0)
推荐(0)
2019年9月29日
matplotlib修改坐标轴刻度值,刻度个数
摘要: Matplotlib 中的 ticker 模块用于支持坐标轴刻度的修改,调用下列命令可以初步查看主副坐标轴刻度的数值定位方式(locator)与具体格式(formatter)等。 详情:http://matplotlib.org/api/axis_api.html 设置主副刻度对象属性
阅读全文
posted @ 2019-09-29 20:03 Yi_warmth
阅读(15660)
评论(0)
推荐(0)
matplotlib(一)
摘要: 绘制简单的折线: 代码如下:
阅读全文
posted @ 2019-09-29 19:42 Yi_warmth
阅读(173)
评论(0)
推荐(0)
2019年9月2日
python-jit(提高代码运行速度)
摘要: #coding:utf-8import timefrom numba import jitimport pandas as pd# from numba import autojit# @autojit #能对所有类型的参数进行运算@jit #即时编译,产生的函数只能对指定类型的参数进行运算def
阅读全文
posted @ 2019-09-02 15:29 Yi_warmth
阅读(10622)
评论(0)
推荐(0)
2019年7月14日
pandans处理Excel
摘要: pandans依赖处理Excel的xlrd模块,所以需要提前安装, 安装命令: pip install xlrd; 提前准备一个Excel文件,存在两个表单; 读取Excel的方式: 1:默认读取第一个表单 import pandas as padf = pa.read_excel("./1.xls
阅读全文
posted @ 2019-07-14 15:59 Yi_warmth
阅读(948)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
21
下一页
公告
CSDN博客地址