Python Data Structure 简明教程

Python - Data structures Tutorial

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

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.

Audience

本教程专为计算机科学毕业生和希望利用 Python 作为编程语言以简单且轻松的步骤学习数据结构和算法编程的软件专业人士而设计。

This tutorial is designed for Computer Science graduates as well as Software Professionals who are willing to learn data structures and algorithm programming in simple and easy steps using Python as a programming language.

Prerequisites

在继续本教程之前,您应该具备用任何 Python 集成开发环境 (IDE) 编写 Python 编程语言代码以及执行 Python 程序的基础知识。如果您是 Python 完全新手,请参考我们的 Python tutorial 以全面了解该语言。

Before proceeding with this tutorial, you should have a basic knowledge of writing code in Python programming language, using any python integrated development environment (IDE) and execution of Python programs. If you are completely new to python, then please refer our Python tutorial to get a sound understanding of the language.