代码示例:(标识:python_type_frozenset)
python_type_frozenset.py
x = frozenset({"apple", "banana", "cherry"})

#display x:
print(x)

#display the data type of x:
print(type(x))
运行结果: