Basic knowledge of computer and python introduction and interpreter installation

1 Computer basics

  • 1.1 Enter the command prompt, the basic introduction in the prompt
  • 1.2 Basic dos commands in the command prompt
  • 1.3 Base
  • 1.4 Environment variables

1.1 Enter the command prompt, the basic introduction in the prompt

the first method:
The win key + R key on the keyboard, ----------> open the run, open the box of that line and enter cmd to open the command prompt interface.
Insert picture description here
Insert picture description here
Insert picture description here

The second method
Click on the win key---------->Find the windows system and click---------->See the command prompt and click---------->Success turn on
Insert picture description here

Insert picture description here
Insert picture description here
Insert picture description here

1.2 Basic dos commands in the command prompt

command effect
Drive letter+: Enter the target disk
cd+space+the folder or file name of your drive letter Open to the target folder or file
cd… Return to the previous level
to you View files under drive letter
del+space+the folder where you are Delete files in the target folder
rd+space+empty folder of your drive letter Delete target folder
md+space+the name of the folder you want to create Production target folder
cd\ Return to the form of drive letter
exit Exit the command prompt

1.3 Base

Binary 1 Every two enters one
Octal 2 Every eight enters one
Decimal 3 Every tenth
Hexadecimal 4 Every sixteen into one
…… ……

3.2 Base Conversion
Decimal Conversion Binary
Binary Conversion Octal
Octal Conversion Decimal
Decimal Conversion Hexadecimal

1.4 Environment variables

The environment variable is simply a shortcut. For example, if you want to find a file, you have to find which disk it is in first, and then find which folder to find the file. This is troublesome. The environment variable does not need to be so troublesome, just Copy the directory of the file you need under the path, and you can quickly open it in the command prompt just by typing its file name. Below we will demonstrate how to add the path to the path.

first step
Second step

third step
The last step is to open the command prompt dialog box with the win+R key, and enter the file name just now
the fourth step

2 Python introduction and interpreter installation

  • 2.1 Introduction to Python
  • 2.2 Download and installation of python interpreter

2.1 Introduction to Python

2.1.1 python was created by Guido Van Rossum. The name python was when Guido Van Rossum adopted Monty python's Flying Circus (Monty python's Flying Circus, translated as Monty python theatre group, python That’s how the name comes from).

2.1.2 The advantages of python,
easy to learn,
cross-platform,
free and open
...

2.2 Download and installation of python interpreter

Enter python.org in the search bar in Google to enter the official website of python

2.2.1 python download
Insert picture description here

Insert picture description here

Insert picture description here
Insert picture description here

2.2.2 Installation of python interpreter
Double-click the downloaded installation package
Insert picture description here

Insert picture description here

Then open your command prompt and enter python. If it appears the same as the picture below, it means that your python interpreter has been installed successfully. Congratulations.
Insert picture description here


  1. Example of two-level system: 010101…… ↩︎

  2. Octal example: 1 2 3 4 5 6 7 10 9 10 11 12 13 14 15 1617 20…… ↩︎

  3. Decimal example: 1 2 3 4 5 6 7 8 9 10 …… ↩︎

  4. Hexadecimal example: 1 2 3 45 6 7 8 9 ABCDEF 10...
    Hexadecimal A=10, B=11, C=12, D=13, E=14, F=15, ↩︎

Guess you like

Origin blog.csdn.net/qq_46278558/article/details/109274110