官术网_书友最值得收藏!

Summary

In this chapter, we have gone over how to create and use classes in Python. We have seen that they allow for code reuse by defining methods, but these methods can have different outcomes depending on which attributes the particular instance of a class holds.

We have briefly looked at the concept of polymorphism and how easy it is to do using Python's dynamic typing.

Our basic command-line version of the blackjack game has been written and is fully playable. We are now prepared to take this up to the next level in the following chapter by utilizing some new Tkinter widgets.

The choice of interface options has been discussed so that we now know why learning a graphical framework such as Tkinter is a good idea to allow for familiarity and ease of use for our applications. This serves as our motivation for the next step with our game, so that we may make it interesting and enjoyable for as many people as possible.

主站蜘蛛池模板: 八宿县| 南溪县| 东城区| 崇礼县| 浑源县| 浪卡子县| 清丰县| 和硕县| 文成县| 西安市| 芦山县| 拜城县| 麻城市| 娱乐| 揭东县| 彰化市| 蚌埠市| 东兰县| 凤翔县| 古蔺县| 桃园县| 承德县| 甘德县| 黄龙县| 达日县| 年辖:市辖区| 讷河市| 抚州市| 工布江达县| 延安市| 老河口市| 昭通市| 大新县| 仪征市| 隆化县| 綦江县| 明溪县| 博客| 兰州市| 西华县| 廊坊市|