摘要:
英文文档: staticmethod(function) Return a static method for function. A static method does not receive an implicit first argument. The @staticmethod form 阅读全文
posted @ 2017-12-29 17:00
lincappu
阅读(417)
评论(0)
推荐(0)
摘要:
英文文档: classmethod(function) Return a class method for function. A class method receives the class as implicit first argument, just like an instance me 阅读全文
posted @ 2017-12-29 16:58
lincappu
阅读(757)
评论(0)
推荐(0)
摘要:
英文文档: class property(fget=None, fset=None, fdel=None, doc=None) Return a property attribute. fget is a function for getting an attribute value. fset i 阅读全文
posted @ 2017-12-29 16:57
lincappu
阅读(327)
评论(0)
推荐(0)
摘要:
英文文档: 第一个参数为语句字符串,globals参数和locals参数为可选参数,如果提供,globals参数必需是字典,locals参数为mapping对象。 2.能够读取局部和全部变量,并且能修改全局变量,这个要注意的是,他修改完全局变量的值后,只能在内部使用因为没有 return 的功能,( 阅读全文
posted @ 2017-12-29 16:56
lincappu
阅读(378)
评论(0)
推荐(0)
摘要:
英文文档: 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 @ 2017-12-29 16:55
lincappu
阅读(407)
评论(0)
推荐(0)
摘要:
英文文档: compile(source, filename, mode, flags=0, dont_inherit=False, optimize=-1) 阅读全文
posted @ 2017-12-29 16:54
lincappu
阅读(798)
评论(0)
推荐(0)
摘要:
英文文档: open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None) Open file and return a corresponding fil 阅读全文
posted @ 2017-12-29 16:52
lincappu
阅读(286)
评论(0)
推荐(0)
摘要:
英文文档: 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 阅读全文
posted @ 2017-12-29 16:50
lincappu
阅读(242)
评论(0)
推荐(0)
摘要:
英文文档: print(*objects, sep=' ', end='\n', file=sys.stdout, flush=False) Print objects to the text stream file, separated by sep and followed by end. se 阅读全文
posted @ 2017-12-29 16:37
lincappu
阅读(342)
评论(0)
推荐(0)
摘要:
英文文档: locals() Update and return a dictionary representing the current local symbol table. Free variables are returned by locals()when it is called in 阅读全文
posted @ 2017-12-29 16:35
lincappu
阅读(325)
评论(0)
推荐(0)

浙公网安备 33010602011771号