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

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.

主站蜘蛛池模板: 三河市| 扶风县| 宁海县| 南木林县| 平罗县| 佛山市| 大同市| 江门市| 莎车县| 光山县| 凉山| 登封市| 陇川县| 金坛市| 昭觉县| 陈巴尔虎旗| 太原市| 黄山市| 长沙市| 承德县| 永仁县| 林西县| 南陵县| 岱山县| 札达县| 丁青县| 千阳县| 文昌市| 昌乐县| 邳州市| 鞍山市| 栾城县| 龙里县| 都江堰市| 防城港市| 广德县| 镇原县| 丹棱县| 吉水县| 墨玉县| 光山县|