Почему unbound local error | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Почему unbound local error

Код: from tkinter import * root = Tk() a = 0 def add(): a += 1 #ошибка возникает на этой строке title = Label(text = '0

#x27;) title.pack() button = Button(text = 'Click', command = add) button.pack() while True: title['text'] = str(a) + "
quot; root.mainloop()

11th Jul 2020, 9:48 AM
Woolbex
Woolbex - avatar
1 Answer
0
Bagon, спасибо
11th Jul 2020, 10:05 AM
Woolbex
Woolbex - avatar