python learning preparatory papers

Download and install Notepad ++

Wanted in the official website to download the results metaphysical point is not open to find a installation package, the way to determine the installation package can be deleted after the installation is complete (uncertainty are afraid to delete previously)

 

Python environment

Was installed for ages, there is always a problem. But eventually finally completed, patient care! ! Path configured.

Ready Powershell

Powershell to know new friend, powershell ≠ cmd

Some commonly used commands:

pwd print working directory (print working directory)

Create a directory mkdir (make directory)

cd to change directories, one (change directory), type

ls lists the contents of the directory (list files)

rmdir delete path (remove directory)

The first began with a simple python program

Write a print, encountered two problems

First, save the file location of the problem, the error message can not open file 'ex1.py': [Errno 2] No such file or directory.

Need to run the command in the directory file created in advance using the cd command to ensure that this layer into the directory and then run python .py file name

Second, I installed the python3, tutorial is python2 , an error message SyntaxError

Mainly python3 print using print ( ""), python2 is print "".

 

Be regarded as a simple start, especially small step, problems encountered more than expected, we must stick to it!

 

Guess you like

Origin www.cnblogs.com/yiduoyun0826/p/12623853.html