python - get list of tuples first index?

后端 未结 5 1143
隐瞒了意图╮
隐瞒了意图╮ 2020-12-03 02:48

What\'s the most compact way to return the following:

Given a list of tuples, return a list consisting of the tuples first (or second, doesn\'t matter) elements.

5条回答
提交回复
热议问题