基本用法如下: import tkinter as tk text = tk.Label(root, text='輸入名稱').pack(side=tk. ... value = var.get() #取得字串的值. root.mainloop().
確定! 回上一頁