约 296 字
约 1 分钟
说明:类型转换为 set。
set
def set(x): ''' 类型转换为 set :param x: 一个变量 :return: 转换为 set 后的值 '''
示例:
print(set([1, 1, 1, 2, 2, 3, 3, 4, 5, 5, 6])) 运行代码>>> Establishing WebAssembly Runtime. >>> Standby. Powered by Shift.
print(set([1, 1, 1, 2, 2, 3, 3, 4, 5, 5, 6]))
>>> Establishing WebAssembly Runtime.
>>> Standby.
Powered by Shift.
创建于 2025/5/9
更新于 2025/5/11