📜  如何读取列表中的元组python代码示例

📅  最后修改于: 2022-03-11 14:47:02.497000             🧑  作者: Mango

代码示例1
a_list = [(1, 2), (3, 4), (5, 6)]

selected_items = [item[1] for item in a_list]

print(selected_items)