After you install Python, running the python command goes into the python command-line interaction environment
$ python
python 3.6.3 (v3.6.3:2c5fed86e0, Oct 3 2017, 00:32:08)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on Darwin
Type ' help ', ' copyright ', ' credits ' or ' license ' for the more information.
>>>
>>> is the CPython prompt, CPython is the default interpreter. Exit command line interaction
Ctrl+d
exit ()
quit ()
MultiRow
>>> print (1); \
... print (2); \
... print (3)
1
2
3
The carriage return will execute immediately, seemingly escaping the carriage return, which is equivalent
Print (1);p rint (2);p rint (3)
Define a function
>>> def welcome ():
. Print (' One front end ') ... Print (' Want to learn machine learning ') ... Print (' Start with Python ') ...
>>> welcome ()
A front-end
want to learn machine learning
from Python began