AssertionError: Thread.__init__() not called报错解决方案

一、问题描述

  自定义的类继承Thread类,重写了构造方法,运行程序时报错。
 
二、解决方案
  重写父类的构造方法后,需要调用父类构造方法。
  
  

原文地址:https://www.cnblogs.com/lxmtx/p/13140432.html