function 4

warnings.filterwarnings(action,category=Warning, ..) is used to filter warnings

warnings.warn(message, category=None) for warning

iter(obj) creates an iterator from an iterable object

next(it) advances the iterator one step and returns the next element

property(fget, fset, fdel, doc) returns a property; all arguments are optional

super(class, obj) returns an associated instance of the superclass

dir(obj) returns an alphabetical list of property names

help([obj]) provides interactive help or help information about a specific object

imp.reload(module) returns the reloaded version of the imported module

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325303454&siteId=291194637