python_list和tuple互转

Python中,tuple和list均为内置类型,

以list作为参数将tuple类初始化,将返回tuple类型

1 tuple([1,2,3,4])
list->tuple

以tuple做为参数,转化为list

1 list((1,2,3)) #tuple转换为list
tuple->list
 
原文地址:https://www.cnblogs.com/jerrybaby/p/6121702.html