Numpy
摘要:
import numpy as np a = np.array([[1,2,3,4], [5,6,7,8], [9,10,11,12]]) col_r1 = a[:, 1] col_r2 = a[:, 1:2] print(col_r1, col_r1.shape) # Prints "[ 2 6 阅读全文
posted @ 2022-09-11 22:41 squarebky 阅读(31) 评论(0) 推荐(0)
posted @ 2022-09-11 22:41 squarebky 阅读(31) 评论(0) 推荐(0)
posted @ 2022-01-15 02:08 squarebky 阅读(62) 评论(0) 推荐(0)