一个与zip的混合应用 list = [(1, 2, 3), (4, 5, 6), (7, 8, 9)] s = random.sample(list, 2) print(s) a, b, c = map(np.array, zip(*s)) print(a) print(b) print(c) print('type of a : ', type(a))