a = np.triu(np.ones((3, 3)), 1) # see help(np.triu). >>> a. array([[0., 1., 1.], ... Look at the axis keyword for sort and rewrite the previous exercise.
確定! 回上一頁