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

Chapter 2. Built-in Data Types

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

--Sherlock Holmes - The Adventure of the Copper Beeches

Everything you do with a computer is managing data. Data comes in many different shapes and flavors. It's the music you listen, the movie you stream, the PDFs you open. Even the chapter you're reading at this very moment is just a file, which is data.

Data can be simple, an integer number to represent an age, or complex, like an order placed on a website. It can be about a single object or about a collection of them.

Data can even be about data, that is, metadata. Data that describes the design of other data structures or data that describes application data or its context.

In Python, objects are abstraction for data, and Python has an amazing variety of data structures that you can use to represent data, or combine them to create your own custom data. Before we delve into the specifics, I want you to be very clear about objects in Python, so let's talk a little bit more about them.

主站蜘蛛池模板: 黑水县| 宜兰县| 贵港市| 自治县| 罗甸县| 新疆| 灌南县| 古田县| 兴义市| 苍溪县| 静乐县| 股票| 八宿县| 广东省| 瑞安市| 民丰县| 博爱县| 满洲里市| 沙雅县| 滦南县| 遂溪县| 德清县| 漳平市| 泽普县| 巴林左旗| 余姚市| 襄樊市| 西乡县| 泰顺县| 南丰县| 绥阳县| 武山县| 东光县| 石狮市| 绥中县| 浙江省| 大安市| 新干县| 大田县| 临漳县| 乾安县|