运行以下代码:
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()
当用户点击按钮时,程序将输出?( )
"Button clicked!"
"Click me!"
没有任何输出
程序将崩溃