標籤:python
import easygui flavor = easygui.buttonbox("what is your favorite?", choices = ["vanilla","chocolate","strawberry"]) easygui.msgbox ("you picked " + flavor) easygui.msgbox (flavor + "is great!")
程式運行
650) this.width=650;" title="image" style="border-top:0px;border-right:0px;border-bottom:0px;border-left:0px;" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M02/8C/9B/wKiom1hxKemTP3ezAABASWqK5fs530.png" height="159" />
650) this.width=650;" title="image" style="border-top:0px;border-right:0px;border-bottom:0px;border-left:0px;" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M02/8C/97/wKioL1hxKerDVJozAAAogfOIWAU841.png" height="157" />
650) this.width=650;" title="image" style="border-top:0px;border-right:0px;border-bottom:0px;border-left:0px;" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M00/8C/97/wKioL1hxKeuBD9H8AAA7sgy6mG0915.png" height="160" />
另外PyCharm裡竟然無法調用easygui的module,要花時間研究一下
python練習-easygui-選口味