radiobutton单选按钮 import tkinter as tk window = tk.Tk() window.title('my window') #设置窗口的名字 window.geometry('240x260') #设置窗口大小 var = tk.StringVar(