点击给定Python Tkinter代码中Change text按钮后,标签的文本会变成?
import tkinter as tk
def change_text():
label.config(text="Changed text")
root = tk.Tk()
label = tk.Label(root, text="Original text")
label.pack()
button = tk.Button(root, text="Change text", command=change_text)
button.pack()
root.mainloop()
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析