给定Python Tkinter加减乘除单选框代码,运行后得到的界面是哪一项?

rg984686 单选题 共 个子题
import tkinter
from tkinter import *
root = Tk()
v = IntVar()
calcs = [ ('+', 1),
('-', 2),
('*', 3),
('/', 4),
]
for calc, num in calcs:
    # 设置单选框,用来显示运算符
    Radiobutton(text = calc,variable =v,value=num).grid(row=num-1, column=1)
root.mainloop()

运行后的界面是?

正在加载题目数据…
已答 /
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析
讨论
发布
登录后参与讨论 立即登录
发布讨论需先绑定并验证手机号 去绑定手机号
加载中…
我
我
回复 @
回复 @
发送
还没有人讨论,来发表第一条吧