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

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.

主站蜘蛛池模板: 文安县| 铜川市| 定州市| 开远市| 寿阳县| 鲁山县| 明溪县| 衡东县| 苏州市| 洪泽县| 诏安县| 怀远县| 太保市| 杭锦旗| 河西区| 天等县| 清徐县| 永顺县| 沂源县| 文安县| 江安县| 通州市| 西昌市| 海兴县| 天水市| 普洱| 泾阳县| 泽库县| 太仓市| 鲁山县| 安龙县| 安吉县| 浏阳市| 元氏县| 准格尔旗| 峡江县| 梧州市| 牟定县| 乃东县| 双牌县| 纳雍县|