随笔分类 -  Python

摘要:需要处理金融相关数据,小数点位数要求6位,单纯使用 float 转化计算,导致小数位数变化且精度不满足要求,查阅相关资料后总结如下 1,基础 单精度型(float):在Turbo C中占4个字节(32位)内存空间,其数值范围为3.4E-38~3.4E+38,只提供7位有效数字。 双精度型(doubl 阅读全文
posted @ 2022-10-09 10:47 interesting5319 阅读(274) 评论(0) 推荐(0) 编辑
摘要:1,windnd 对 windows 桌面图标拖拽加载路径 安装:pip install windnd from tkinter import * import windnd for idx,i in enumerate(ls): print(idx,i) tk = Tk() windnd.hook 阅读全文
posted @ 2022-10-09 10:26 interesting5319 阅读(986) 评论(0) 推荐(0) 编辑
摘要:Python文件打包成exe 官方文档 https://pyinstaller.org/en/stable/index.html 1,多个py文件 1,在"py文件所在目录"下cmd使用:pyi-makespec xxx.py 2,修改xxx.spec文件:加入需要打包的所有python文件,同时确 阅读全文
posted @ 2022-07-27 11:32 interesting5319 阅读(259) 评论(0) 推荐(0) 编辑
摘要:关于练习题目及内容思路和结构 原题出自https://www.cnblogs.com/linhaifeng/articles/7532512.html 阅读全文
posted @ 2021-08-23 14:31 interesting5319 编辑

点击右上角即可分享
微信分享提示