约 308 字
约 2 分钟
说明:类型转换为 tuple。
tuple
def tuple(x): ''' 类型转换为 tuple :param x: 一个变量 :return: 转换为 tuple 后的值 '''
示例:
print(tuple([1, 1, 1, 2, 2, 3, 3, 4, 5, 5, 6])) Loading...
print(tuple([1, 1, 1, 2, 2, 3, 3, 4, 5, 5, 6]))
创建于 2025/5/9 23:27:43
更新于 2025/5/11 16:48:17