赞
踩
def run(self): """Method representing the thread's activity. 表示线程活动的方法。 You may override this method in a subclass. The standard run() method invokes the callable object passed to the object's constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively. 您可以在子类中重写此方法。 标准的run()方法调用传递给对象构造函数的可调用对象作为目标参数(如果有), 并分别从args和kwargs参数中获取顺序参数和关键字参数。 """ try: if self._target: self._target(*self._args, **self._kwargs) finally: # Avoid a refcycle if the thread is running a function with # an argument that has a member that points to the thread. del self._target, self._args, self._kwargs
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。