1. First of all, install python, I chose the latest version 3.7.0a2.
Download: https://www.python.org/downloads/mac-osx/
2. Run terminal with command python as below:
3. then you can type python command in terminal directly, as below:
4. exit() can exist python as below:
5. first program: hello world!
method 1:
run terminal and type python as below:
method 2:
new a document as below:
then call a command in terminal as below:
网友评论