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

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.

主站蜘蛛池模板: 县级市| 峨山| 卓资县| 当雄县| 陇西县| 海原县| 郁南县| 太康县| 宣汉县| 云林县| 营山县| 新沂市| 博湖县| 喀喇| 榆树市| 新源县| 博罗县| 嘉鱼县| 福鼎市| 诸暨市| 阳西县| 青河县| 吉林市| 新郑市| 视频| 汪清县| 株洲市| 平湖市| 金塔县| 新巴尔虎右旗| 寿阳县| 额济纳旗| 商丘市| 罗甸县| 台江县| 凯里市| 墨脱县| 淳化县| 万全县| 台州市| 鞍山市|