easygui的choicebox模块
easygui中如果对choicebox中的选项进行编译怎么办呢?比如import easygui as g
msg="msg"
tietle="标题"
choices=["1","2","3"]
g.choicebox(msg,tietle,choices)
后面如果选1该怎么写呢 import easygui as g
msg = "msg"
tietle = "标题"
choices = ["1", "2", "c"]
# 用一个变量接收就好了
a = g.choicebox(msg, tietle, choices)
print(a)
页:
[1]