说明:类型转换为 tuple。
class tuple():
'''
创建一个空元组
:return: 空元组
'''
!subtitle:说明
创建一个空元组
!subtitle:参数
无
!subtitle:返回值
空元组
class tuple(iterable):
'''
类型转换为 tuple
:param iterable: 一个可迭代对象
:return: 转换为 tuple 后的值
'''
!subtitle:说明
将变量转换为 tuple 类型
!subtitle:参数
iterable - 要转换的可迭代对象
!subtitle:返回值
转换为 tuple 后的元组
print(tuple([1, 1, 1, 2, 2, 3, 3, 4, 5, 5, 6]))