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.
The second method
Click on the win key---------->Find the windows system and click---------->See the command prompt and click---------->Success turn on
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.
The last step is to open the command prompt dialog box with the win+R key, and enter the file name just now
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
2.2.2 Installation of python interpreter
Double-click the downloaded installation package
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.