摘要: import numpy as np import matplotlib.pyplot as plt import matplotlib matplotlib.rcParams['font.family']='YouYuan' matplotlib.rcParams['font.sans-serif 阅读全文
posted @ 2020-05-06 09:27 哦噢 阅读(350) 评论(0) 推荐(0) 编辑
摘要: from PIL import Image import numpy as np vec_el=np.pi/3.2 vec_az=np.pi/3. depth=20. im=Image.open('111.jpg').convert('L') a=np.asarray(im).astype('flo 阅读全文
posted @ 2020-05-06 09:08 哦噢 阅读(174) 评论(0) 推荐(0) 编辑
摘要: import numpy as np import matplotlib.pyplot as plt x=np.linspace(0,6,100) y=np.cos(2*np.pi*x)*np.exp(-x)+0.8 plt.plot(x,y,'k',color='r',linewidth=3,li 阅读全文
posted @ 2020-05-06 09:02 哦噢 阅读(243) 评论(0) 推荐(0) 编辑
摘要: print('number of dim:',array.ndim) # 维度 # number of dim: 2 print('shape :',array.shape) # 行数和列数 # shape : (2, 3) print('size:',array.size) # 元素个数 # si 阅读全文
posted @ 2020-05-06 08:56 哦噢 阅读(317) 评论(0) 推荐(0) 编辑