📜  python 解压列表 - Python 代码示例

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

代码示例1
zipped = [("a", 1), ("b", 2)]
unzipped_object = zip(*zipped)
unzipped_list = list(unzipped_object)

print(unzipped_list)
# Output:
# [('a', 'b'), (1, 2)]