10 2016 档案

摘要:英文文档: 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 @ 2016-10-31 12:44 十月狐狸 阅读(2504) 评论(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 @ 2016-10-30 22:08 十月狐狸 阅读(1817) 评论(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 @ 2016-10-29 10:35 十月狐狸 阅读(15618) 评论(0) 推荐(0) 编辑
摘要:英文文档: 2. 函数实际上是调用getattr(object,name)函数,通过是否抛出AttributeError来判断是否含有属性。 阅读全文
posted @ 2016-10-29 10:34 十月狐狸 阅读(2408) 评论(0) 推荐(0) 编辑
摘要:英文文档: 阅读全文
posted @ 2016-10-29 10:33 十月狐狸 阅读(999) 评论(0) 推荐(0) 编辑
摘要:英文文档: 2. 函数第三个参数default为可选参数,如果object中含义name属性,则返回name属性的值,如果没有name属性,则返回default值,如果default未传入值,则报错。 阅读全文
posted @ 2016-10-28 22:16 十月狐狸 阅读(8161) 评论(0) 推荐(1) 编辑
摘要:英文文档: 2. 不传入参数时,生成的空的不可变集合。 阅读全文
posted @ 2016-10-28 22:05 十月狐狸 阅读(2119) 评论(0) 推荐(0) 编辑
摘要:英文文档: format(value[, format_spec]) Convert a value to a “formatted” representation, as controlled by format_spec. The interpretation of format_spec wi 阅读全文
posted @ 2016-10-27 20:01 十月狐狸 阅读(3530) 评论(3) 推荐(0) 编辑
摘要:英文文档: class float([x]) Return a floating point number constructed from a number or string x. If the argument is a string, it should contain a decimal 阅读全文
posted @ 2016-10-26 16:40 十月狐狸 阅读(25113) 评论(0) 推荐(0) 编辑
摘要:英文文档: filter(function, iterable) Construct an iterator from those elements of iterable for which function returns true. iterable may be either a seque 阅读全文
posted @ 2016-10-26 16:13 十月狐狸 阅读(1166) 评论(0) 推荐(0) 编辑
摘要:英文文档: 2. 第一个参数为语句字符串,globals参数和locals参数为可选参数,如果提供,globals参数必需是字典,locals参数为mapping对象。 3. globals参数用来指定代码执行时可以使用的全局变量以及收集代码执行后的全局变量 4. locals参数用来指定代码执行时 阅读全文
posted @ 2016-10-25 22:16 十月狐狸 阅读(7073) 评论(0) 推荐(1) 编辑
摘要:英文文档: This function can also be used to execute arbitrary code objects (such as those created by compile()). In this case pass a code object instead o 阅读全文
posted @ 2016-10-25 10:29 十月狐狸 阅读(4883) 评论(0) 推荐(0) 编辑
摘要:英文文档: enumerate(iterable, start=0) Return an enumerate object. iterable must be a sequence, an iterator, or some other object which supports iteration 阅读全文
posted @ 2016-10-25 09:35 十月狐狸 阅读(807) 评论(0) 推荐(0) 编辑
摘要:英文文档: divmod(a, b) Take two (non complex) numbers as arguments and return a pair of numbers consisting of their quotient and remainder when using inte 阅读全文
posted @ 2016-10-24 17:06 十月狐狸 阅读(1105) 评论(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 @ 2016-10-24 16:40 十月狐狸 阅读(2043) 评论(0) 推荐(0) 编辑
摘要:英文文档: class dict(**kwarg) class dict(mapping, **kwarg) class dict(iterable, **kwarg) Return a new dictionary initialized from an optional positional a 阅读全文
posted @ 2016-10-23 17:45 十月狐狸 阅读(2247) 评论(0) 推荐(0) 编辑
摘要:英文文档: 2. 当属性不存在的时候,会报错。 3. 不能删除对象的方法。 阅读全文
posted @ 2016-10-23 11:12 十月狐狸 阅读(3282) 评论(0) 推荐(0) 编辑
摘要:英文文档: class complex([real[, imag]]) Return a complex number with the value real + imag*1j or convert a string or number to a complex number. If the fi 阅读全文
posted @ 2016-10-23 10:59 十月狐狸 阅读(1554) 评论(0) 推荐(0) 编辑
摘要:英文文档: compile(source, filename, mode, flags=0, dont_inherit=False, optimize=-1) 阅读全文
posted @ 2016-10-22 09:47 十月狐狸 阅读(3282) 评论(2) 推荐(1) 编辑
摘要:英文文档: classmethod(function) Return a class method for function. A class method receives the class as implicit first argument, just like an instance me 阅读全文
posted @ 2016-10-21 16:28 十月狐狸 阅读(1534) 评论(0) 推荐(0) 编辑
摘要:英文文档: 2. 它的功能与ord函数刚好相反 3. 传入的参数值范围必须在0-1114111(十六进制为0x10FFFF)之间,否则将报ValueError错误 阅读全文
posted @ 2016-10-21 14:59 十月狐狸 阅读(1979) 评论(0) 推荐(0) 编辑
摘要:英文文档: callable(object) Return True if the object argument appears callable, False if not. If this returns true, it is still possible that a call fails 阅读全文
posted @ 2016-10-21 11:30 十月狐狸 阅读(19535) 评论(0) 推荐(1) 编辑
摘要:英文文档: class bytes([source[, encoding[, errors]]]) Return a new “bytes” object, which is an immutable sequence of integers in the range 0 <= x < 256. b 阅读全文
posted @ 2016-10-20 11:11 十月狐狸 阅读(34630) 评论(2) 推荐(2) 编辑
摘要:英文文档: class bytearray([source[, encoding[, errors]]]) Return a new array of bytes. The bytearray class is a mutable sequence of integers in the range 阅读全文
posted @ 2016-10-20 10:25 十月狐狸 阅读(24965) 评论(0) 推荐(3) 编辑
摘要:英文文档: class bool([x]) Return a Boolean value, i.e. one of True or False. x is converted using the standard truth testing procedure. If x is false or o 阅读全文
posted @ 2016-10-19 22:58 十月狐狸 阅读(4530) 评论(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 @ 2016-10-19 13:52 十月狐狸 阅读(5591) 评论(0) 推荐(0) 编辑
摘要:英文文档: 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 @ 2016-10-19 13:51 十月狐狸 阅读(4272) 评论(0) 推荐(0) 编辑
摘要:英文文档: any(iterable) Return True if any element of the iterable is true. If the iterable is empty, return False. Equivalent to: 说明: 1. 接受一个可迭代器对象为参数,当参 阅读全文
posted @ 2016-10-19 13:45 十月狐狸 阅读(1690) 评论(0) 推荐(0) 编辑
摘要:英文文档: all(iterable) Return True if all elements of the iterable are true (or if the iterable is empty). Equivalent to: 说明: 1. 接受一个可迭代器对象为参数,当参数为空或者不为可 阅读全文
posted @ 2016-10-19 10:12 十月狐狸 阅读(1068) 评论(0) 推荐(0) 编辑
摘要:abs 阅读全文
posted @ 2016-10-15 01:24 十月狐狸 阅读(4049) 评论(0) 推荐(0) 编辑