import random a = torch.rand(9) print('a:\n', a) random.shuffle(a) print('random.shuffle(a):\n', a) index = [i for i in range(len(a))]
確定! 回上一頁