1.len:返回矩陣一維的個數:
x = [0,3,2,1,5,4,6,5,6,7] y = [0,8,2,1,3,8,3,4,4,5] xy = np.array(list(zip(x,y)))#n行2列的矩陣 print(len(xy)) #結果:10
參考網址:https://blog.csdn.net/qq_24193303/article/details/80961646
x = [0,3,2,1,5,4,6,5,6,7] y = [0,8,2,1,3,8,3,4,4,5] xy = np.array(list(zip(x,y)))#n行2列的矩陣 print(len(xy)) #結果:10
參考網址:https://blog.csdn.net/qq_24193303/article/details/80961646
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。