3.3.4 模拟可调用对象 Emulating callable objects

__call__( self[, args...])
Called when the instance is ``called'' as a function; if this method is defined, x(arg1, arg2, ...) is a shorthand for x.__call__(arg1, arg2, ...).

当实例像一个函数使用时调用本方法.如果定义了这个方法, 那么x(arg1, arg2, ...)是x.__call__(arg1, arg2, ...)的缩写形式.