import easygui flavor = easygui.buttonbox("what is your favorite?", choices = ["vanilla","chocolate","strawberry"]) easygui.msgbox ("you picked " + flavor) easygui.msgbox (flavor + "is great!")
程序运行截图
另外PyCharm里竟然无法调用easygui的module,要花时间研究一下
时间: 2024-12-30 00:00:18