摘要:
英文文档: staticmethod(function) Return a static method for function. A static method does not receive an implicit first argument. The @staticmethod form 阅读全文
摘要:
英文文档: classmethod(function) Return a class method for function. A class method receives the class as implicit first argument, just like an instance me 阅读全文
摘要:
英文文档: 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 阅读全文
摘要:
英文文档: 第一个参数为语句字符串,globals参数和locals参数为可选参数,如果提供,globals参数必需是字典,locals参数为mapping对象。 2.能够读取局部和全部变量,并且能修改全局变量,这个要注意的是,他修改完全局变量的值后,只能在内部使用因为没有 return 的功能,( 阅读全文
摘要:
英文文档: 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 阅读全文
摘要:
英文文档: compile(source, filename, mode, flags=0, dont_inherit=False, optimize=-1) 阅读全文
摘要:
英文文档: open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None) Open file and return a corresponding fil 阅读全文
摘要:
英文文档: 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 阅读全文
摘要:
英文文档: 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 阅读全文
摘要:
英文文档: locals() Update and return a dictionary representing the current local symbol table. Free variables are returned by locals()when it is called in 阅读全文