错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Variables & Objects: How Do I Store Data to Work With?

  • Joachim L. Zuckarelli

摘要

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.