时间:2024-10-21 23:03:09
1、新建一个将列表转换为元组.py,如图所示:
3、tuple() 函数的作用:将列表转换为元组
5、使用 tuple() 函数将列表转换成元组,代码:aTuple = tuple(aList)
7、至此,本教程结束!