The Python Code run helper allows you to enter Python code online and execute the code from a Python script run natively. The principle is as follows:
650) this.width=650; "Src=" http://www.liaoxuefeng.com/files/attachments/ 0014325378500266160eebb8c27407b8a2e86bb29e71a5a000/l "alt=" Code-input "/>
-
Click the Run button, the code is sent to the native running Python code running assistant;
-
The Python Code run helper Saves the code as a temporary file and then invokes the Python interpreter to execute the code;
-
The Web page displays code execution results:
650) this.width=650; "Src=" http://www.liaoxuefeng.com/files/attachments/ 0014325378652089425fd465927483ab448330d06289c35000/l "alt=" Code-result "/>
Download
Right click, save target as: learning.py
Spare: learning.py
Run
learning.pyrun the command in the stored directory:
C:\users\michael\downloads> python learning.py
If you see a Ready for Python code on port 39093... successful run, do not close the command-line window, and minimize it to run in the background:
650) this.width=650; "Src=" http://www.liaoxuefeng.com/files/attachments/ 00143253692366570c866ceab874d91b44649c9dc5754ac000/l "alt=" run-learning.py "/>
Try the effect
Requires a browser that supports HTML5:
-
IE >= 9
-
Firefox
-
Chrome
-
Sarafi
# test Code:
This article is from the "lake and Laughter" blog, please make sure to keep this source http://hashlinux.blog.51cto.com/9647696/1792652
Python Code run Helper (6)----help you go longer.