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.
For:
[(1,'one'),(2,'two'),(3,'three')]
returned list would be
[1,2,3]
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…