摘要:
英文文档: ascii(object) As repr(), return a string containing a printable representation of an object, but escape the non-ASCII characters in the string r 阅读全文
posted @ 2017-12-29 16:17
lincappu
阅读(243)
评论(0)
推荐(0)
摘要:
英文文档: 2. 如果参数为其它类型,则其必须实现__len__方法,并返回整数,否则报错。 阅读全文
posted @ 2017-12-29 16:16
lincappu
阅读(475)
评论(0)
推荐(0)
摘要:
英文文档: class type(object) class type(name, bases, dict) With one argument, return the type of an object. The return value is a type object and generall 阅读全文
posted @ 2017-12-29 16:15
lincappu
阅读(414)
评论(0)
推荐(0)
摘要:
英文文档: 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 阅读全文
posted @ 2017-12-29 16:13
lincappu
阅读(444)
评论(0)
推荐(0)
摘要:
英文文档: 阅读全文
posted @ 2017-12-29 16:09
lincappu
阅读(262)
评论(0)
推荐(0)
摘要:
英文文档: dir([object]) Without arguments, return the list of names in the current local scope. With an argument, attempt to return a list of valid attrib 阅读全文
posted @ 2017-12-29 16:07
lincappu
阅读(292)
评论(0)
推荐(0)
摘要:
英文文档: help([object]) Invoke the built-in help system. (This function is intended for interactive use.) If no argument is given, the interactive help s 阅读全文
posted @ 2017-12-29 16:05
lincappu
阅读(411)
评论(0)
推荐(0)
摘要:
英文文档: zip(*iterables) Make an iterator that aggregates elements from each of the iterables. Returns an iterator of tuples, where the i-th tuple contai 阅读全文
posted @ 2017-12-29 16:04
lincappu
阅读(340)
评论(0)
推荐(0)
摘要:
英文文档: sorted(iterable[, key][, reverse]) Return a new sorted list from the items in iterable. Has two optional arguments which must be specified as ke 阅读全文
posted @ 2017-12-29 16:03
lincappu
阅读(282)
评论(0)
推荐(0)
摘要:
英文文档: 反转序列生成新的可迭代对象 说明: 1. 函数功能是反转一个序列对象,将其元素从后向前颠倒构建成一个新的迭代器。 2. 如果参数不是一个序列对象,则其必须定义一个__reversed__方法。 阅读全文
posted @ 2017-12-29 16:02
lincappu
阅读(592)
评论(0)
推荐(0)

浙公网安备 33010602011771号