基礎代碼

import numpy , matplotlib.pyplot numpy 部分 data = np.array([ [ , ] , [ , ] , [ , ] ]) array 裏面是數組,數組是個【】,然後裏面放 n個,1行 * 多列的數組 data.shape shape 表示數組大小,(行數,列數) 拆解數組: data [ : 2 ] 顯示數組第1,2個元素 x1 = data [ :
相關文章
相關標籤/搜索