np的补充
https://blog.youkuaiyun.com/lllxxq141592654/article/details/81532855
np.linspace(a,b,n):从a到b均匀取n个点
np.meshgrid(x,y):
使用方法:
import numpy as np
import matplotlib.pyplot as plt
A = np.array([2, 1])
B=np.array([5,8,9,0])
X,Y=np.meshgrid(A,B)
print(X)
print('-'*50)
原创
2021-08-25 22:16:24 ·
226 阅读 ·
0 评论