This article mainly introduces how to start Python programming with PyCharm and Visual Studio in Windows. These two software are also representatives of Python IDE in Windows. if you need it, refer to setting up a python development environment in Windows.
First, go to the python official website to download the environment. Move the cursor to the Downloads tab, where you can download it.
The python environment is still very user-friendly. there are not so many redundant configurations or anything. after downloading the environment, you can simply click "next" until you finish.
Python IDE
There are many excellent Python Ides. here I will introduce a few of them that are relatively common to me! Ranking in no particular order!
- Pycharm
- VIM
- Eclipse with PyDev
- Sublime Text
- Komodo Edit
- PyScripter
- Interactive Editor for Python
PyCharm
Here, pycharm is used as an example.
Pycharm is free for 30 days by default.
Starting from Hello World
Hello world is relatively simple. after the environment is set up, it can be done in one breath. here I will map it directly.
First open the installed pycharm
Click create to create a project
Print a "Hello World"
In fact, for "learning python", we recommend that you use pycharm. pycharm can be used to set various IDE codes such as VS or eclipse, making it easier for most users who prefer to use IDE in other languages. This compatibility is indeed very good. However, since so many park friends require vs to develop python, we will introduce the python development environment in visual studio 2015.
VS 2015 build a development environment
Before the official start, you must first have visual studio2013/2015 on your computer. if not, download a visual studio
1. create a project:
2. download environment:
After creating a good job, click Run. the following interface will appear, click download, and install
2. test environment:
OK. The operation is successful!