源代码
mylist = ['apple', 'banana', 'cherry'] x = frozenset(mylist) print(x)
运行结果