📜  列出解包python代码示例

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

代码示例2
# unpack a list python:
list = ['red', 'blue', 'green']

# option 1
red, blue = colors

# option 2
*list