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

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.

主站蜘蛛池模板: 鹰潭市| 罗山县| 凤山县| 夏邑县| 延川县| 凤阳县| 库尔勒市| 浏阳市| 辽阳市| 秀山| 拉萨市| 贞丰县| 加查县| 孟连| 肥城市| 梓潼县| 连云港市| 太原市| 辉南县| 灯塔市| 赤壁市| 泗阳县| 土默特左旗| 大邑县| 利津县| 报价| 宜宾县| 兰西县| 石家庄市| 彭阳县| 石渠县| 保亭| 遂川县| 安丘市| 安宁市| 偃师市| 石门县| 莎车县| 新民市| 商城县| 丹凤县|