摘要: 默认情况下,Python 拥有以下数据类型: strings - 用于表示文本数据,文本用引号引起来。例如 "ABCD"。 integer - 用于表示整数。例如 -1, -2, -3。 float - 用于表示实数。例如 1.2, 42.42。 boolean - 用于表示 True 或 Fals 阅读全文
posted @ 2021-09-24 10:24 Mz1 阅读(123) 评论(0) 推荐(0) 编辑
摘要: Numpy中的数组对象称为 ndarray , 目标就是快。 安装 pip install numpy 实例测试 一般可能会这样导入 import numpy as np 检查numpy版本:np.version 创建numpy ndarray对象 使用array()函数来进行创建 使用数组、元组等 阅读全文
posted @ 2021-09-24 10:15 Mz1 阅读(32) 评论(0) 推荐(0) 编辑