
python使用tuple函数将列表转换为元组
在python中使用tuple()函数将列表转换为元组的方法 tuple:tuple()函数的作用是将列表转换为元组。 tuple()函数语法: tuple( iterable ) 参数: iterable:表示需要转换为元组的可迭代序列。...
在python中使用tuple()函数将列表转换为元组的方法 tuple:tuple()函数的作用是将列表转换为元组。 tuple()函数语法: tuple( iterable ) 参数: iterable:表示需要转换为元组的可迭代序列。...