I. Getting to know Python for the first time
Official Python website:
Version: python-3.4.3.amd64
Somebody is new to Python and has no experience in developing real projects using Python. So I don't know which version is better or worse, but it's just a hobby to understand and learn.
II. Installation
Windows environment installation
Because somebody has no real Python development experience, cut is currently limited to learning, so all operations are carried out in the windows environment.
1. Official website to download the installation program, link:/downloads/
2. After the download is complete, double-click to run the downloaded python-3.4.3. file (choose your own users, the default is install for all users)
3. Specify the installation path
4. Select the customization option, it is recommended to check Add to Path here (it will save you the trouble of manually configuring the path after installing Python).
5. Wait for the installation to finish
Verify whether the installation is successful: win key + R, enter, in the command line type 'python' command shows the following picture shows, that is, success!
III. IDE
It comes with an editor that somebody has been using for the first few days after getting into python. It's like writing java code with .txt when you first learn about java, it's a gradual process that tends to be automated.
++ is an open source text editor that is powerful enough to run python scripts in the following ways.
1. Press 'F5' or click 'Run' to bring up the following window:
Will order:
cmd /k python "$(FULL_CURRENT_PATH)" & PAUSE & EXIT
Copy the box in the above image, set the customized shortcut key, somebody set it to alt+r
2. Verify if the setting is successful
Create a new python script file (.py ending), somebody creates a new file and simply writes an output statement: print('Hello Python~') and saves it. Use the shortcut you just defined
The results are shown below:
The first line is the output of this output statement, proving that the configuration is correct.
plug-in (software component)
1. Install Eclipse
==> Install New Software ==> Add, and after that, as shown below
Enter name, then location (/updates), and click OK!
3. Wait until the following figure appears
Select PyDev to install
Once installed, reboot to create a new python project!
The above mentioned is the whole content of this article, I hope you will enjoy it.