其实只需要for循环里面加一个 plt.figure(i) #循环作图 A = torch.rand(6,4) (m,n) = np.shape(A) for i in range(n): plt.figure