![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
Dsz095
这个作者很懒,什么都没留下…
展开
-
警告:不建议使用非元组序列进行多维索引
使用scipy模块时出现警告:FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use arr[tuple(seq)] instead of arr[seq]. In the future this will be interpreted as an array index,...原创 2019-06-16 20:37:40 · 667 阅读 · 0 评论 -
NumPy基础教程及numpy常用函数
import numpy as np 1.1. NumPy ndarray:多维数组对象 NumPy的一个关键特性是它的N维数组对象(ndarray),它在Python中是一个大型数据集的快速的、灵活的容器。 元素都是同类型的。每一个数组都有一个 shape (表示它每一维大小的元组)和 dtype (一个描述数组数据类型的对象): data2 = [[1, 2, 3, 4], [5, 6,...原创 2019-06-04 22:19:43 · 411 阅读 · 0 评论