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

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.

主站蜘蛛池模板: 防城港市| 祁东县| 米泉市| 谢通门县| 河源市| 策勒县| 嘉定区| 西林县| 改则县| 深水埗区| 高平市| 浮梁县| 忻城县| 乃东县| 平乐县| 离岛区| 滦平县| 沙湾县| 湟中县| 唐海县| 大城县| 佛学| 萨迦县| 桂平市| 开鲁县| 关岭| 蕉岭县| 崇明县| 板桥市| 和龙市| 获嘉县| 巩义市| 华阴市| 分宜县| 彩票| 华安县| 屏东市| 吉林省| 高唐县| 花莲县| 抚顺市|