摘要: ### np.stack(x_new, axis=-2) 在函数中,`x_new = np.stack(x_new, axis=-2)` 的目的是将保留区域的 `x` 数组沿着倒数第二个维度进行堆叠,得到一个新的数组 `x_new`,该数组的维度为 `(6940, 45, 90, a, 9)`,其中 阅读全文
posted @ 2023-07-01 20:34 辛宣 阅读(16) 评论(0) 推荐(0) 编辑
摘要: ### enumerate用法 list1 = ["这", "是", "一个", "测试"] for index, item in enumerate(list1): print index, item >0 这 >1 是 >2 一个 >3 测试 阅读全文
posted @ 2023-07-01 20:34 辛宣 阅读(4) 评论(0) 推荐(0) 编辑