Python learning day01 - Computer Basics

first day

What is programming

Language is used to communicate.

Language + fire constitutes a human civilization

Python language is used and the computer exchange

Through his computer and exchange, and get things done a lot of programmers want to accomplish, is called programming.

Why Programming

Save labor, to complete the work more efficient, and create efficiency.

Let the computer instead of to some extent on the human, and even completely replace humans.

Composed of five computer

1.            the CPU (brain)

              Controller (control)

              Class people, control the limbs, running all organized

2. The           operator (operator)

              Perform logic operations , and arithmetic operations

3.            memory (the memory of brain tissue)

.              The computer known only 0 and 1 (high and low voltage frequency)

     # AB 0101 0110      0101 1001 # ac

            Advantages: very fast access. Disadvantages: time is short, save time not long (off disappears).

4.            external memory (laptop)

              Benefits: stable in storage for a long time, large capacity. Disadvantages: slow access speed.

5.            The input device

              Receive information

6. The            output device 

               Output transmission of information

                Similar to the human mouth

Computer Organization supplement

Recommended Books < beauty of mathematics >

Application process starts

1.          双击打开qq(快捷方式-->指向一个路径(外存),去这个位置找到他)

2.          发送指令给内存,让内存读取外存中的qq内容

3.          运行

多核CPU

  相当于多个大脑,同时(同一时刻)处理多件事情

32位和64

64位系统向下兼容32位软件,反之不可以

ROM存储器+CMOS存储器

开机,告诉计算机操作系统的位置,该信息存储在CMOS存储器中。

总线

总线相当于人类的神经,肌肉,血管

硬盘工作原理

机械硬盘上存储的都是 0 1

机械手臂:读取数据

磁道:存储数据

扇区:多个磁道组成一块,起始位置不同

寻找数据的时间:

平均寻道时间:机械手臂找到磁盘的时间5ms(固态硬盘没有这个时间)

平均延迟时间:(0 + ?)/2       7200r/min

 

寻找数据时间 = 平均寻道时间 + 平均延迟时间

固态硬盘

固态不需要平均延迟时间,RAM (断电消失)

固态硬盘是基于固态电子(SSD,断电不消失)和算法实现数据存储的。

 

计算机操作系统

什么是文件?

计算机不能提供文件,文件是操作系统提供的,一个虚拟的概念,不同操作系统的文件定义是不一样的。

什么叫应用程序


 

QQ是个应用程序,本质就是一堆文件。

编程是为了解决人类需求,完成某件事情,写出一个应用程序,就是写一堆文件。

什么叫操作系统

一个软件,帮我们完成计算机的控制。

操作系统的作用

操作系统把对计算机控制的复杂指令(CPU简化了

 

用户/硬件/操作系统/应用程序

硬件:与操作系统交互

操作系统:人/应用程序

应用程序:人/操作系统

硬件之间的交流通过CPU

 

打开应用程序必须经过操作系统,打开操作系统必须经过(ROM存储器(临时操作系统))

1.          通电

2.          按下开机键

3.          开机键会启动临时操作系统(ROM应用程序)

4.          临时操作系统去找windows操作系统的路径并启动

5.          操作系统启动

推荐书籍  《乌合之众》

 

 

应用程序和操作系统启动的区别

应用程序依托于操作系统

操作系统依托于临时操作系统

其他步骤会一模一样

 

第一天过去,感觉这里老师个个都很好,说话又好听,又有才,我超喜欢这里。

 

Guess you like

Origin www.cnblogs.com/Xu-PR/p/11246347.html