📜  列表到元组 - Python 代码示例

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

代码示例1
sample_list = ['Compile', 'With', 'Favtutor']

#unpack list items and form tuple
tuple1 = (*sample_list,)

print(tuple1)
print(type(tuple1))