lst = [[a,b,c], [1,2,3], [x,y,z]]
使用列表理解:
>>> lst = [['a','b','c'], [1,2,3], ['x','y','z']] >>> lst2 = [item[0] for item in lst] >>> lst2 ['a', 1, 'x']