27、'frozenset', 返回一个冻结的集合,冻结后集合不能再添加或删除任何元素。

  1. class frozenset(object)
  2. | frozenset() -> empty frozenset object
  3. | frozenset(iterable) -> frozenset object
  4. |
  5. | Build an immutable unordered collection of unique elements.
    # 创建一个不可变得,无序的,元素唯一的集合
  6. |
  7. | Methods defined here:
  8. |
  9. | __and__(self, value, /)
  10. | Return self&value.
  11. |
  12. | __contains__(...)
  13. | x.__contains__(y) <==> y in x.
  14. |
  15. | __eq__(self, value, /)
  16. | Return self==value.
  17. |
  18. | __ge__(self, value, /)
  19. | Return self>=value.
  20. |
  21. | __getattribute__(self, name, /)
  22. | Return getattr(self, name).
  23. |
  24. | __gt__(self, value, /)
  25. | Return self>value.
  26. |
  27. | __hash__(self, /)
  28. | Return hash(self).
  29. |
  30. | __iter__(self, /)
  31. | Implement iter(self).
  32. |
  33. | __le__(self, value, /)
  34. | Return self<=value.
  35. |
  36. | __len__(self, /)
  37. | Return len(self).
  38. |
  39. | __lt__(self, value, /)
  40. | Return self<value.
  41. |
  42. | __ne__(self, value, /)
  43. | Return self!=value.
  44. |
  45. | __new__(*args, **kwargs) from builtins.type
  46. | Create and return a new object. See help(type) for accurate signature.
  47. |
  48. | __or__(self, value, /)
  49. | Return self|value.
  50. |
  51. | __rand__(self, value, /)
  52. | Return value&self.
  53. |
  54. | __reduce__(...)
  55. | Return state information for pickling.
  56. |
  57. | __repr__(self, /)
  58. | Return repr(self).
  59. |
  60. | __ror__(self, value, /)
  61. | Return value|self.
  62. |
  63. | __rsub__(self, value, /)
  64. | Return value-self.
  65. |
  66. | __rxor__(self, value, /)
  67. | Return value^self.
  68. |
  69. | __sizeof__(...)
  70. | S.__sizeof__() -> size of S in memory, in bytes
  71. |
  72. | __sub__(self, value, /)
  73. | Return self-value.
  74. |
  75. | __xor__(self, value, /)
  76. | Return self^value.
  77. |
  78. | copy(...)
  79. | Return a shallow copy of a set.
  80. |
  81. | difference(...)
  82. | Return the difference of two or more sets as a new set.
  83. |
  84. | (i.e. all elements that are in this set but not the others.)
  85. |
  86. | intersection(...)
  87. | Return the intersection of two sets as a new set.
  88. |
  89. | (i.e. all elements that are in both sets.)
  90. |
  91. | isdisjoint(...)
  92. | Return True if two sets have a null intersection.
  93. |
  94. | issubset(...)
  95. | Report whether another set contains this set.
  96. |
  97. | issuperset(...)
  98. | Report whether this set contains another set.
  99. |
  100. | symmetric_difference(...)
  101. | Return the symmetric difference of two sets as a new set.
  102. |
  103. | (i.e. all elements that are in exactly one of the sets.)
  104. |
  105. | union(...)
  106. | Return the union of sets as a new set.
  107. |
  108. | (i.e. all elements that are in either set.)

  

python __builtins__ frozenset类 (27)的更多相关文章

  1. python __builtins__ staticmethod类 (64)

    64.'staticmethod', 返回静态方法 class staticmethod(object) | staticmethod(function) -> method | | Conve ...

  2. python __builtins__ memoryview类 (46)

    46.'memoryview',  返回给定参数的内存查看对象(Momory view).所谓内存查看对象,是指对支持缓冲区协议的数据进行包装,在不需要复制对象基础上允许Python代码访问. cla ...

  3. python __builtins__ help类 (32)

    32.'help', 接收对象作为参数,更详细地返回该对象的所有属性和方法 class _Helper(builtins.object) | Define the builtin 'help'. | ...

  4. python __builtins__ float类 (25)

    25.'float', 用于将整数和字符串转换成浮点数. class float(object) | float(x) -> floating point number | | Convert ...

  5. python __builtins__ classmethod类 (11)

    11.'classmethod', 修饰符对应的函数不需要实例化,不需要 self 参数,但第一个参数需要是表示自身类的 cls 参数,可以来调用类的属性,类的方法,实例化对象等. class cla ...

  6. python __builtins__ bool类 (6)

    6.'bool',  函数用于将给定参数转换为布尔类型,如果没有参数,返回 False. class bool(int) # 继承于int类型 | bool(x) -> bool # 创建boo ...

  7. python __builtins__ zip类 (71)

    71.'zip' , 函数用于将可迭代的对象作为参数,将对象中对应的元素打包成一个个元组,然后返回由这些元组组成的列表.如果各个迭代器的元素个数不一致,则返回列表长度与最短的对象相同,利用 * 号操作 ...

  8. python __builtins__ type类 (69)

    69.'type', 返回对象类型 class type(object) | type(object_or_name, bases, dict) | type(object) -> the ob ...

  9. python __builtins__ tuple类 (68)

    68.'tuple', 转换为元组类型 class tuple(object) | tuple() -> empty tuple | tuple(iterable) -> tuple in ...

随机推荐

  1. Solidworks如何绘制标准螺纹线

    1 绘制螺旋线,螺距为0.5mm,圈数为15,起始角度为0°.   2                

  2. SpringBoot学习之启动报错【This application has no explicit mapping for /error.....】

    今天做SpringBoot小例子,在请求controller层的时候出现如下问题. Whitelabel Error Page This application has no explicit map ...

  3. Codeforces Round #148 (Div. 1)

    A wool sequence 表示一个序列中能够找到一个连续的子区间使得区间异或值为0 那么求的是不含这样的情况的序列个数 题目中数据范围是.在0~2^m - 1中选n个数作为一个序列 n和m都是1 ...

  4. mt7620 wifi driver

    <*> Ralink RT2860 802.11n AP support [*] LED Support [*] WSC (WiFi Simple Config) [*] WSC 2.0( ...

  5. Ajax的简单实现(JQuary)

    还是之前的例子,相对来说,用JQ就简单了很多,真的多,因为JQ直接把方法都写好了,直接调用就行了,,ԾㅂԾ,, php文件就不需要多做修改了,如下: <?php //改变Content-Type ...

  6. POJ 1183 反正切函数的应用(数学代换,基本不等式)

    题目链接:http://poj.org/problem?id=1183 这道题关键在于数学式子的推导,由题目有1/a=(1/b+1/c)/(1-1/(b*c))---------->a=(b*c ...

  7. Kubernetes实战阅读笔记--1、介绍

    1.业界根据云计算提供服务资源的类型将其划分为三大类: 基础设施即服务(Infrastructure-as-a-Service,IaaS).平台即服务(Platform-as-a-Service,Pa ...

  8. python dictionary的遍历

    d = {'x':1, 'y':3, 'z':2} for k in d:    print d[k] 直接遍历k in d的话,遍历的是dictionary的keys. 2 字典的键可以是任何不可变 ...

  9. passive aggressive(pa)和average perceptron(ap)

    passive aggressive(pa)和average perceptron(ap)

  10. vue、react、angular三大框架对比

    前端的三大框架当属vue.react以及angular了,个人比较偏向react,它的社区比较繁荣,有很多丰富的组件 .angular的话感觉编译时间有点长,等待很恼火. vue与react vue和 ...