发布时间:2019-09-08 09:11:16编辑:auto阅读(2368)
python创建多维数组的3种方式:
#coding=utf-8
import numpy as np
#1
image =[[(col+1)*(row+1) for col in range(5)] for row in range(3)]
a = np.array(image)
print(a)
#2
new_image =np.zeros((3,5))
#3
b = np.arange(12).reshape(3,4)
print(b)
上一篇: python图片转换pdf
下一篇: 解决 Python shell 中 De
51554
51121
41650
38407
32894
29871
28587
23544
23476
21822
1968°
2673°
2232°
2163°
2612°
2189°
2923°
4848°
4687°
3331°