摘要: matplotlib是一个Python的2D绘图库,最流行的Python底层绘图库,主要做数据可视化。 matplotlib使用时需要先导入库,有两种导入方式 from matplotlib import pyplot as plt import matplotlib.pyplot as plt 绘 阅读全文
posted @ 2020-07-25 22:53 Chenjin2018 阅读(337) 评论(0) 推荐(0) 编辑
摘要: numpy是Python语言的一个扩展程序库,支持大量的维度数组与矩阵运算,此外,也针对数组运算提供大量的数学函数库。 numpy常用的操作: ndarray.ndim:秩,即轴的数量或维度的数量 ndarray.size:数组元素的总个数 ndarray.dtype:ndarray对象的元素类型 阅读全文
posted @ 2020-07-25 13:13 Chenjin2018 阅读(276) 评论(0) 推荐(0) 编辑