簡單的實作: 結果為: tkinter中button按鈕控件(三) 給button中添加參數: 結果如下: 點選點我按鈕後執行func函數,會在控制台列印“點我” 點選退出按鈕後會執行wuya.quit,視窗關閉 tkinter中button按鈕控件(三)