Python Data Structure 简明教程

Discuss Python Data Structure

电脑以非常高的速度和准确度存储和处理数据。所以,十分必需的是数据的高效存储并可以快速访问。而且,数据的处理应在时间尽可能短的情况下进行,但不能失去准确度。

Computers store and process data with an extra ordinary speed and accuracy. So, it is highly essential that the data is stored efficiently and can be accessed fast. Also, the processing of data should happen in the smallest possible time, but without losing the accuracy.

数据结构处理数据在程序处理时在内存中的组织和保存方式。需要注意的是,这里的数据结构并不指存储在磁盘中的数据,这是持久性存储的一部分(如关系表)。

Data structures deal with how the data is organised and held in the memory, when a program processes it. It is important to note that, the data that is stored in the disk as part of persistent storages (like relational tables) are not referred as data structure here.

算法是一组逐步说明,用于处理特定目的的数据。因此,算法以一种逻辑的方式利用各种数据结构来解决特定的计算问题。

An Algorithm is step by step set of instruction to process the data for a specific purpose. So, an algorithm utilises various data structures in a logical way to solve a specific computing problem.

在本教程中,我们将使用 Python 编程语言来介绍计算机科学的这两个基本概念。

In this tutorial, we will cover these two fundamental concepts of computer science using the Python programming language.