Variables & Objects: How Do I Store Data to Work With?
摘要
In this chapter we will now turn to working with variables in Python. We will also see how to combine multiple variables in list-style fields (arrays) and associate hashes (dictionaries). Python is an object-oriented language, and all variables are objects with attributes and methods. Therefore, we will not only look at creating, assigning, and converting variables between different data types, but also at how object orientation is implemented in Python and how you can use object-oriented programming in Python to your advantage.