Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はこの配列を持っています:
[160, 177], [162, 169], [163, 169], [166, 173], [166, 176], [166, 177], [169, 176], [169, 177]]
それを2つの別々の配列に分割して、次のようにするにはどうすればよいですか:
[160,162,163,166,166,166,169,169]
と
[177,169,169,173,176,177,176,177]
これでできるはず
l = [[160, 177], [162, 169], [163, 169], [166, 173], [166, 176], [166, 177], [169, 176], [169, 177]] l1, l2 = zip(*l)