3085182369 发表于 2021-9-12 16:15:42

easygui的choicebox模块

easygui中如果对choicebox中的选项进行编译怎么办呢?比如
import easygui as g
msg="msg"
tietle="标题"
choices=["1","2","3"]
g.choicebox(msg,tietle,choices)
后面如果选1该怎么写呢

大马强 发表于 2021-9-12 17:00:45

import easygui as g
msg = "msg"
tietle = "标题"
choices = ["1", "2", "c"]
# 用一个变量接收就好了
a = g.choicebox(msg, tietle, choices)

print(a)
页: [1]
查看完整版本: easygui的choicebox模块