📅  最后修改于: 2022-03-11 14:46:34.775000             🧑  作者: Mango
import easygui
choices = ['opt 1', 'opt2']
answer = easygui.choicebox('text', 'title', choices=choices)
if answer == 'opt 1':
easygui.msgbox('text', 'title', ok_button="ok button")
elif answer == 'opt2':
choices = ['opt1', 'opt 2']
easygui.choicebox('text', 'title', choices=choices)