单选题

运行以下代码:

import tkinter as tk  

def click():  

   print("Button clicked!")  

root = tk.Tk()  

button = tk.Button(root, text="Click me!", command=click)  

button.pack()  

root.mainloop()

当用户点击按钮时,程序将输出?( )

A

"Button clicked!"

B

"Click me!"

C

没有任何输出

D

程序将崩溃

赣ICP备20007335号-2