英文文档: 2. 当传入多个可迭代对象时,函数的参数必须提供足够多的参数,保证每个可迭代对象同一索引的值均能正确传入函数。 3. 当传入多个可迭代对象时,且它们元素长度不一致时,生成的迭代器只到最短长度。 4. map函数是一个典型的函数式编程例子。 ...
分类:
编程语言 时间:
2016-11-05 20:19:48
阅读次数:
154
英文文档: locals() Update and return a dictionary representing the current local symbol table. Free variables are returned by locals() when it is called i ...
分类:
编程语言 时间:
2016-11-04 23:21:00
阅读次数:
248
英文文档: class list([iterable]) Rather than being a function, list is actually a mutable sequence type, as documented in Lists and Sequence Types — list, ...
分类:
编程语言 时间:
2016-11-04 23:04:55
阅读次数:
160
英文文档: iter(object[, sentinel]) Return an iterator object. The first argument is interpreted very differently depending on the presence of the second a ...
分类:
编程语言 时间:
2016-11-04 01:15:12
阅读次数:
373
英文文档: isinstance(object, classinfo) Return true if the object argument is an instance of the classinfo argument, or of a (direct, indirect or virtual) ...
分类:
编程语言 时间:
2016-11-03 22:59:16
阅读次数:
230
英文文档: input([prompt]) If the prompt argument is present, it is written to standard output without a trailing newline. The function then reads a line f ...
分类:
编程语言 时间:
2016-11-02 14:25:46
阅读次数:
188
英文文档: 2. 函数实际上是调用getattr(object,name)函数,通过是否抛出AttributeError来判断是否含有属性。 ...
分类:
编程语言 时间:
2016-10-29 12:17:15
阅读次数:
234
英文文档: hash(object)Return the hash value of the object (if it has one). Hash values are integers. They are used to quickly compare dictionary keys duri ...
分类:
编程语言 时间:
2016-10-29 11:38:39
阅读次数:
201