First, a new knowledge of Python
Python official website: www.python.org
Version: Python-3.4.3.amd64
Somebody first contact with Python, without the experience of developing a real project using Python 2.x. So I do not know the 2.x version and the 3.x version of the pros and cons, is now as an interest to understand and learn.
Second, installation
Windows Environment Installation
Since somebody does not have real Python development experience, it is currently limited to learning, so all operations are performed in a Windows environment.
1. Download the installer, Link: https://www.python.org/downloads/
2. After the download is complete, double-click the Python-3.4.3.amd64.msi file that runs the download (select User, default to install for all users)
3. Specify the installation path
4. Select the Custom option, it is recommended to check the ADD python.ext to Path here (will omit the installation of Python manually after the trouble to configure the Path)
5. Wait for the installation to finish
Verify that the installation was successful: Win key +r, enter, type ' python ' command at the command line as shown, that is, success
Third, IDE
1.Python comes with an editor , and somebody has been in use for the last few days after contacting Python. Just like when I first knew Java, I used txt to write Java code, which is a gradual process of automation.
2.notepad++ is an open source text editor that is powerful and can run Python scripts in the following ways.
1. Press ' F5 ' or click ' Run ' to bring up the following window:
The command:
cmd/k python "$ (full_current_path)" & PAUSE & EXIT
Copy to the box, set the custom shortcut key, somebody set to the Alt+r
2. Verify that the setting is successful
Create a new Python script file (end of. Py), somebody creates a new test.py file, and simply writes an output statement: print (' Hello python~ '), save. As shown in the following:
The first line is the output of the output statement, which proves the configuration is correct.
3.Eclipse Plugin
1. Install Eclipse
2.Help ==> Install New software ==> Add, after that, as shown in
Enter name, then location (http://pydev.org/updates), click OK
3. Wait until the show appears
Select Pydev to install
Once you're done, restart to create a new Python project.
Some of the content is referenced from the blog of fee ' s land
Python Basic Learning Notes (i) installation and configuration of the IDE