如果要在 tkinter 的視窗程式中加入按鈕,可以使用 Button 這個元件,以下是使用範例: import tkinter as tk # 自訂函數 def hello(): print("Hello, world.
確定! 回上一頁