摘要:
英文文档: enumerate(iterable, start=0) Return an enumerate object. iterable must be a sequence, an iterator, or some other object which supports iteration 阅读全文
posted @ 2017-12-29 15:45
lincappu
阅读(305)
评论(0)
推荐(0)
摘要:
英文文档: 2. 不传入参数时,生成的空的不可变集合。 阅读全文
posted @ 2017-12-29 15:44
lincappu
阅读(294)
评论(0)
推荐(0)
摘要:
英文文档: 根据传入的参数生成一个新的集合 说明: 1. 传入一个可迭代对象,生成一个新的集合。 2. 不传入参数时,生成一个新的空集合。 3. 返回的集合是可以修改的。 阅读全文
posted @ 2017-12-29 15:43
lincappu
阅读(266)
评论(0)
推荐(0)
摘要:
英文文档: class dict(**kwarg) class dict(mapping, **kwarg) class dict(iterable, **kwarg) Return a new dictionary initialized from an optional positional a 阅读全文
posted @ 2017-12-29 15:42
lincappu
阅读(207)
评论(0)
推荐(0)
摘要:
英文文档: class list([iterable]) Rather than being a function, list is actually a mutable sequence type, as documented in Lists and Sequence Types — list, 阅读全文
posted @ 2017-12-29 15:41
lincappu
阅读(261)
评论(0)
推荐(0)
摘要:
英文文档: The constructor builds a tuple whose items are the same and in the same order as iterable‘s items. iterable may be either a sequence, a containe 阅读全文
posted @ 2017-12-29 15:40
lincappu
阅读(228)
评论(0)
推荐(0)
摘要:
英文文档: hex(x) Convert an integer number to a lowercase hexadecimal string prefixed with “0x”, for example If x is not a Python int object, it has to de 阅读全文
posted @ 2017-12-29 15:39
lincappu
阅读(565)
评论(0)
推荐(0)
摘要:
英文文档: 将整数转换为8进制的字符串 2. 如果传入参数不是整数,则其必须是一个定义了__index__并返回整数函数的类的实例对象。 阅读全文
posted @ 2017-12-29 15:37
lincappu
阅读(268)
评论(0)
推荐(0)
摘要:
英文文档: bin(x) Convert an integer number to a binary string. The result is a valid Python expression. If x is not a Python int object, it has to define 阅读全文
posted @ 2017-12-29 15:36
lincappu
阅读(362)
评论(0)
推荐(0)
摘要:
英文文档: 2. 它的功能与ord函数刚好相反 3. 传入的参数值范围必须在0-1114111(十六进制为0x10FFFF)之间,否则将报ValueError错误 阅读全文
posted @ 2017-12-29 15:35
lincappu
阅读(708)
评论(0)
推荐(0)

浙公网安备 33010602011771号