英文文件:
class frozenset
##([iterable ])
# object, optionally with elements taken from
iterable. frozenset is a built-in class. See
frozenset and ##SetSet 類型— set, frozenset
for documentation about this class.For other containers see the built-in
#list
tuple, and
classes, as well as the
module.
>>> a = frozenset(range(10)) >>> a frozenset({0, 1, 2, 3, 4, 5, 6, 7, 8, 9}) >>> b = frozenset('I am a Pythoner') >>> b frozenset({'y', 'I', ' ', 'r', 't', 'm', 'h', 'o', 'a', 'e', 'n', 'P'})
>>> c = frozenset() >>> c frozenset()
以上是Python內建frozenset函數的詳細介紹的詳細內容。更多資訊請關注PHP中文網其他相關文章!