以下代码创建了一个简单的图形界面,但点击按钮时没有反应,问题出在没有设置 command 参数绑定事件处理函数。( )from tkinter import * def show_message(): message_label.config(text="按钮被点击了!") root = Tk() message_label = Label(root, text="等待点击...") message_label.pack() my_button = Button(root, text="点击我") my_button.pack() root.mainloop()
A:正确
B:错误
正确答案:正确
试卷来源:202603 青少年软件编程等级考试Python六级真题