关于np.zeros的一段测试代码 测试代码:#test codeimport numpy as npa = np.zeros(2, dtype=np.int32)print(a)b = np.zeros((4, 4), dtype=np.int32)print(b)b[a[0], a[1]] = 1print(b) Other 2023-07-27 55 点赞 0 评论 83 浏览