📜  元组解包 - Python 代码示例

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

代码示例1
>>> b = ("Bob", 19, "CS")
>>> (name, age, studies) = b    # tuple unpacking
>>> name
'Bob'
>>> age
19
>>> studies
'CS'