我有這樣的事情:TypeError:start()只需要1個參數(0給定)?
class thread1(threading.Thread):
def __init__(self):
file = open("/home/antoni4040/file.txt", "r")
data = file.read()
num = 1
while True:
if str(num) in data:
clas = ExportToGIMP
clas.update()
num += 1
thread = thread1
thread.start()
thread.join()
我得到這個錯誤:
TypeError: start() takes exactly 1 argument (0 given)
爲什麼?