Python3中的tuple函数是什么?

本文教程操作环境:windows7系统、Python 3.9.1,DELL G3电脑。

描述:

主要作用就是将列表转化成元组

语法:

tuple()

参数:

列表

返回值:

元组

使用方式:

list=['example_A']
print(list)
tuple=('example_B',)
print(tuple)
1234