python練習-easygui-選口味

來源:互聯網
上載者:User

標籤: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-選口味

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.