≪90 баллов≫
Где правельно поставить отступ в команде:
x1 = randint(5, 190)
⦉ ошибка-- expected an indented block ⦊
весь код: ⇩
from random import randint
from tkinter import*
def btn_click():
x1 = randint(5, 190)
y1 = randint(5, 95)
btn.place(x = x1, y = y1)
root = Tk()
root.geometry('200x100')
btn = Button(root, text = 'OK', command = btn_click)
btn.place(x = 10, y = 10)
root.mainloop()
спам ➣ бан
Ответы
Ответ дал:
1
Ответ:
from random import randint
from tkinter import *
def btn_click():
x1 = randint(5, 190)
y1 = randint(5, 95)
btn.place(x=x1, y=y1)
root = Tk()
root.geometry('200x100')
btn = Button(root, text='OK', command=btn_click)
btn.place(x=10, y=10)
root.mainloop()
Объяснение:
rewasiv:
спасибо!!
Вас заинтересует
1 год назад
1 год назад
1 год назад
3 года назад
3 года назад