1. What is a programming language?
The media the programmer communicates with the computer.
2. What is programming?
Programmers make computers do what they want to do based on the syntax of a programming language, and the result is a bunch of files.
3, why learn to program?
Let the computer replace human work and become a Slave to mankind.
4, the computer's five major components and functions, the composition of the CPU
① Controller: The computer's control center, equivalent to the human brain.
②: A part that runs arithmetic operations and logical operations.
③ Memory: A part of the data and program used to hold a computer. Main storage (memory bar), external memory (disk, USB memory card), respectively.
④ input Device: The device that helps the computer input has a keyboard, mouse.
⑤ output device: The device that helps the computer output has a monitor, a printer.
Controller + operator + Register = CPU
CPU---X86, the CPU has backward compatibility.
How it works: instruction----decode--Execute
The execution of all software is done by the CPU.
Memory (RAM):
Memory Strips
Advantages: fast access speed,
Cons: Small capacity, temporary storage, power loss
Disk
Advantages: Large capacity, permanent storage,
Cons: Slow access speed
5. Memory type, direct speed and capacity sequence:
Time Storage capacity
1ns Register <1KB
2ns Cache 4MB
10ns Memory 512~2048MB
10ms Disk 200~1000GB
100s Tape 400~800GB
6, a program to want to run from scratch, CPU, memory, hard disk parts of how to work?
1 Charging
2 BIOS detects CPU memory hard disk "COMS
4 Load bootloader.
5 reading the operating system kernel
Python Computer Basics