Pages

Feb 6, 2016

Execute python code using ./

Step1: add #!/usr/local/bin/python in the first line of the code
Step2: in the bash, type chmod +x myscript.py
Step3: type ./myscript.py to execute the python code

No comments:

Post a Comment