i get this error “RuntimeError: threads can only be started once” when i click close and then click run again
问题 import threading from tkinter import * running = False def run(): global running c = 1 running = True while running: print(c) c += 1 run_thread = threading.Thread(target=run) def kill(): global running running = False root = Tk() button = Button(root, text='Run', command=run_thread.start) button.pack() button1 = Button(root, text='close', command=kill) button1.pack() button2 = Button(root, text='Terminate', command=root.destroy) button2.pack() root.mainloop() click here for error img....i'm