Please indicate the source: https://mp.csdn.net/postedit/81508867
python powerful, but there is no specific writer, in order to avoid excessive software installation. Configured for use on vs2015, vs2015 directly select the python plug-ins installed. As used herein, the configuration computer model is win7 | 64 bits refer to the article https://jingyan.baidu.com/article/fec4bce271381ff2618d8b3b.html
1. Create a new Python project, in the establishment of a typical Python Application:
2. Configure python environment, right-click the project TestPython Python Environments, the python environment:
Since the first opening, has not been configured for the environment, the situation will appear below, if installed directly python step 4 configuration, otherwise go to step 3;
3. In the python official website ( https://www.python.org/ ) to download the latest version of python, I'm using python3.6. Setup: Choose Custom install and configure the environment variables directly, select the appropriate installation file path and next have been like:
Meaning python and each option represents detailed installation process can refer to the article https://jingyan.baidu.com/article/e9fb46e1502c5a7520f76640.html .
FIG 4. Select the environmental configuration:
python specific configuration:
The above steps can configure python3.6 in vs2015 in.
4. Test
In TestPython.py fill in the code, such as:
for i in range(3):
print("hello world!")
show result:
Above it will be realized in writing python code in vs2015.