![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
little_turtle_
这个作者很懒,什么都没留下…
展开
-
numpy的升维和降维
numpy的升维a = np.array([1,2])b = np.expand_dims(a, axis=1)numpy的降维a = np.array([[1],[2]])b = np.squeeze(a)原创 2019-06-28 09:44:00 · 15254 阅读 · 1 评论 -
only integer scalar arrays can be converted to a scalar index
train_data_11 = np.concatenate(train_data_1, gen_imgs1)改成train_data_11 = np.concatenate((train_data_1, gen_imgs1))原创 2019-06-28 11:40:22 · 748 阅读 · 0 评论