# -*- 編碼:utf-8 -*-
class Functor(object):
def __init__(self, func, index=0, *arg _Index = index
self._Args = args
self._Kwargs = kwargs
args = args[:self._Index] + self._Args + args[self ._索引:]
kwargs = kwargs.copy()
kwargs.update(self._kwargs)
self self._func( *args,** kwargs)
*kwargs)
defbind(func,Index = 0,** ***************************************,**誇格斯):
回函子(func, index, *args, **kwargs)