摘要: >>> import numpy as np >>> a=np.arange(4) >>> a array([0, 1, 2, 3]) >>> a[::-1] array([3, 2, 1, 0]) >>> b=a.reshape(2,2) >>> b array([[0, 1], [2, 3]]) 阅读全文
posted @ 2021-12-29 09:34 番茄-- 阅读(276) 评论(0) 推荐(0)