Skip to content

frozenset

请查看 Python 内建函数列表 了解更多相关 API。

说明:类型转换为 frozenset

python
def frozenset(x):
    '''
    类型转换为 frozenset

    :param x: 一个变量
    :return: 转换为 frozenset 后的值
    '''

示例:

python
print(frozenset({1, 2, 3}))