python callable对象_python Class:面向对象高级编程 __call__& callable()
官网解释:3.4.5.Emulatingcallableobjectsobject.__call__(self[,args...])Calledwhentheinstanceis“called”asafunction;ifthismethodisdefined,x(arg1,arg2,...)isashorthandforx.__call__(arg1,arg2,...).看得懂,但看不明白。。。