1. Configuring the notepate++ Python environment (under OS Installation python)
(1) Run button, notepad++, run menu
(2) Enter the following command in the popup window:
cmd/k python "$ (full_current_path)" & ECHO. & PAUSE & EXIT
Then click "Save", feel free to take a name, such as "Runpython", for convenience, configure the shortcut keys (such as Ctrl + F5), click OK. Then run the Python file simply by pressing the configured shortcut key or by clicking "Runpython 3.6" on the Run menu.
Python: Name of the execution file configured for the environment variable
2. Program Writing
(1) Hello Word
Print "Hello,world"
(2) Input and output
Code Listing 1:
A =int(input ("A:"=int(input ("B:") ) C=a/bprint ("sum:", c)
Output Result:
a:1b:3sum:0.3333333333333333
Code Listing 2:
A =float(input ("A:"=int(input ("B:") ) C=a/bprint ("sum:", c)
Output Result:
A:1.3B:30.43333333333333335
Code Listing 3:
A =float(input ("A:"=3c=a/bprint (" sum:", c)
Output Result:
A:3.21.0666666666666667
Python Learning Day1