php数学函数(Python3.6内置函数(24)——frozenset())PHP函数 / PHP内置函数列表...

wufei123 发布于 2024-02-16 阅读(76)

本文目录英文文档frozenset()小结英文文档class frozenset([iterable])Return a new frozenset object, optionally with elements taken from iterable. frozenset is a built-in class. See frozenset and Set Types — set, frozenset for documentation about this class.

For other containers see the built-in set, list, tuple, and dict classes, as well as the collections module.

php数学函数(Python3.6内置函数(24)——frozenset())PHP函数 / PHP内置函数列表...

frozenset()class frozenset([iterable])1、传入一个可迭代对象,生成一个新的不可变集合>>> a = frozenset(range(10)) >>> a frozenset({0, 1, 2, 3, 4, 5, 6, 7, 8, 9}) >>> b = frozenset(python is simple) >>> b frozenset({p, h, n, e, y, , s, m, o, i, l, t})。

2、不传入参数时,生成的空的不可变集合>>> c = frozenset() >>> c frozenset() 小结希望通过上面的操作能帮助大家如果你有什么好的意见,建议,或者有不同的看法,我都希望你留言和我们进行交流、讨论。

欢迎关注微信公众号,谢谢大家支持:AiryData。转载请注明:数据之美 Python3.6内置函数(24)——frozenset()喜欢 ( 0) or 分享 (0)

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

河南中青旅行社综合资讯 奇遇综合资讯 盛世蓟州综合资讯 综合资讯 游戏百科综合资讯 新闻84814