1. The computer hardware is based on the operating system, and then the application software.
2. The Python language processes the operating system and then completes hardware usage through the operating system.
3. Memory: data cannot be stored permanently, but the speed is fast.
Hard Disk: permanent data storage, but slow
4. The operating system and application software are stored in the hard disk, and some programs of the operating system directly enter the memory upon startup.
After the computer is running, the hard disk sends the data to the memory, and the CPU reads the data from the memory for calculation.
5. Python execution methods
(1) Add the python file path to the python Interpreter
(2) Go to the python interpreter and input and obtain the execution result in real time.
6. Differences between advanced and low-level languages:
Advanced Language: simple development and low execution efficiency (dependent on the C language)
Low-level language: C language and assembly language; complicated development and high execution efficiency
PHP: mainly write website pages
Java: higher execution efficiency than pyhon
Python: faster development efficiency than Java
In actual operation, the execution efficiency of different languages is slightly different. The main influencing factors include database and program optimization.
7. interpreter path
#! /User/binn/ENV python is used in the Linux system, and the path of Python written at the beginning of the program
8. Encoding
#-*-Coding: utf8-*-encoding method
Computer Basics 1