Python
叫狮子的咩
这个作者很懒,什么都没留下…
展开
-
Window使用Python调用cmd命令完美解决方案
Python调用cmd命令完美解决方案,对任何字符都管用。原创 2022-08-27 13:54:01 · 1164 阅读 · 1 评论 -
在【Window】系统下更改 【pip install】 默认安装依赖路径
保证在【Windows】下使用 pip install 一定会安装到当前 Python 环境。原创 2022-08-24 12:07:55 · 1801 阅读 · 0 评论 -
python 数组或List返回Index方法汇总
from collections import defaultdicts = ['000000', '000000', '000000', '000001', '000002', '000001', '000003', '000003', '000002']d = defaultdict(list)for index, val in enumerate(s): d[val].append(index) >>> {'000000': [0, 1, 2], '00原创 2021-07-07 21:36:44 · 2417 阅读 · 0 评论 -
计算机数据单位整理(Python)
bit : 比特位 (计算机最小一级信息单位)byte : 字节8 bits = 1 byte字节单位: KB (Kilobyte), MB (Megabyte), GB (Gigabyte), TB (Trillionbyte), PB (Petabyte)…float16 (半精度), float32 (单精度),float64(双精度)32位CPU,运算一次处理 4bytes 数据;64位CPU,运算一次处理 8bytes 数据一个float64,占内存64bits,存储数据精度最高,内.原创 2021-04-28 08:51:35 · 364 阅读 · 2 评论