This chapter discusses Python Built in features of , This book will use a lot of these functions . Although the extension library , such as pandas and Numpy, Make it easy to handle large data sets , But they are with Python With the built-in data processing tools .
We will come from Python Start with the most basic data structure : Tuples 、 list 、 Dictionaries and collections . Then we'll talk about creating your own 、 Reusable Python function . Last , Able to learn Python The file object of , And how to interact with the local hard disk .
Python The data structure of is simple and powerful . Only by knowing them can one become skilled Python The programmer .
A tuple is a fixed length , Unalterable Python Sequence object . The easiest way to create tuples , Is a column of values separated by commas :
In [1]: tup = 4, 5, 6
In [2]
One 、 Draw column ( shape ) ch
Want to write your own experie