1.6 python数据类型之dict类

类名:dict

  1 def clear(self): # real signature unknown; restored from __doc__
  2         """ 清空字典 """
  3         """ D.clear() -> None.  Remove all items from D. """
  4         pass
  5 
  6     def copy(self): # real signature unknown; restored from __doc__
  7         """ 拷贝字典 浅拷贝 """
  8         """ D.copy() -> a shallow copy of D """
  9         pass
 10 
 11     @staticmethod # known case
 12     def fromkeys(*args, **kwargs): # real signature unknown
 13         """ 创建一个新字典,以序列 seq 中元素做字典的键,value 为字典所有键对应的初始值 """
 14         """ Returns a new dict with keys from iterable and values equal to value. """
 15         pass
 16 
 17     def get(self, k, d=None): # real signature unknown; restored from __doc__
 18         """ 根据键来获取值 """
 19         """ D.get(k[,d]) -> D[k] if k in D, else d.  d defaults to None. """
 20         pass
 21 
 22     def items(self): # real signature unknown; restored from __doc__
 23         """ 以列表的形式返回字典的键值对,每一对键值对都是一个元组,键在前,值在后 """
 24         """ D.items() -> a set-like object providing a view on D's items """
 25         pass
 26 
 27     def keys(self): # real signature unknown; restored from __doc__
 28         """ 以列表的形式返回字典里的键 """
 29         """ D.keys() -> a set-like object providing a view on D's keys """
 30         pass
 31 
 32     def pop(self, k, d=None): # real signature unknown; restored from __doc__
 33         """ 删除对应的键的值并返回,如果键不存在,则返回d """
 34         """
 35         D.pop(k[,d]) -> v, remove specified key and return the corresponding value.
 36         If key is not found, d is returned if given, otherwise KeyError is raised
 37         """
 38         pass
 39 
 40     def popitem(self): # real signature unknown; restored from __doc__
 41         """ 随机删除一对键值对并返回 """
 42         """
 43         D.popitem() -> (k, v), remove and return some (key, value) pair as a
 44         2-tuple; but raise KeyError if D is empty.
 45         """
 46         pass
 47 
 48     def setdefault(self, k, d=None): # real signature unknown; restored from __doc__
 49         """ 增加键值对,k是键,d是值,默认是None,当键存在时,返回对应的值 """
 50         """ D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D """
 51         pass
 52 
 53     def update(self, E=None, **F): # known special case of dict.update
 54         """ 更新字典,以一个字典作为参考来更新字典 """
 55         """
 56         D.update([E, ]**F) -> None.  Update D from dict/iterable E and F.
 57         If E is present and has a .keys() method, then does:  for k in E: D[k] = E[k]
 58         If E is present and lacks a .keys() method, then does:  for k, v in E: D[k] = v
 59         In either case, this is followed by: for k in F:  D[k] = F[k]
 60         """
 61         pass
 62 
 63     def values(self): # real signature unknown; restored from __doc__
 64         """ 返回所有的值 """
 65         """ D.values() -> an object providing a view on D's values """
 66         pass
 67 
 68     def __contains__(self, *args, **kwargs): # real signature unknown
 69         """ True if D has a key k, else False. """
 70         pass
 71 
 72     def __delitem__(self, *args, **kwargs): # real signature unknown
 73         """ Delete self[key]. """
 74         pass
 75 
 76     def __eq__(self, *args, **kwargs): # real signature unknown
 77         """ Return self==value. """
 78         pass
 79 
 80     def __getattribute__(self, *args, **kwargs): # real signature unknown
 81         """ Return getattr(self, name). """
 82         pass
 83 
 84     def __getitem__(self, y): # real signature unknown; restored from __doc__
 85         """ x.__getitem__(y) <==> x[y] """
 86         pass
 87 
 88     def __ge__(self, *args, **kwargs): # real signature unknown
 89         """ Return self>=value. """
 90         pass
 91 
 92     def __gt__(self, *args, **kwargs): # real signature unknown
 93         """ Return self>value. """
 94         pass
 95 
 96     def __init__(self, seq=None, **kwargs): # known special case of dict.__init__
 97         """
 98         dict() -> new empty dictionary
 99         dict(mapping) -> new dictionary initialized from a mapping object's
100             (key, value) pairs
101         dict(iterable) -> new dictionary initialized as if via:
102             d = {}
103             for k, v in iterable:
104                 d[k] = v
105         dict(**kwargs) -> new dictionary initialized with the name=value pairs
106             in the keyword argument list.  For example:  dict(one=1, two=2)
107         # (copied from class doc)
108         """
109         pass
110 
111     def __iter__(self, *args, **kwargs): # real signature unknown
112         """ Implement iter(self). """
113         pass
114 
115     def __len__(self, *args, **kwargs): # real signature unknown
116         """ Return len(self). """
117         pass
118 
119     def __le__(self, *args, **kwargs): # real signature unknown
120         """ Return self<=value. """
121         pass
122 
123     def __lt__(self, *args, **kwargs): # real signature unknown
124         """ Return self<value. """
125         pass
126 
127     @staticmethod # known case of __new__
128     def __new__(*args, **kwargs): # real signature unknown
129         """ Create and return a new object.  See help(type) for accurate signature. """
130         pass
131 
132     def __ne__(self, *args, **kwargs): # real signature unknown
133         """ Return self!=value. """
134         pass
135 
136     def __repr__(self, *args, **kwargs): # real signature unknown
137         """ Return repr(self). """
138         pass
139 
140     def __setitem__(self, *args, **kwargs): # real signature unknown
141         """ Set self[key] to value. """
142         pass
143 
144     def __sizeof__(self): # real signature unknown; restored from __doc__
145         """ D.__sizeof__() -> size of D in memory, in bytes """
146         pass
147 
148     __hash__ = None

 

上一篇:数字签名


下一篇:C#中使用Bittrex API调用的签名无效