How do I create a line-break in Terminal?
问题 I'm using Python in Terminal on Mac OSX latest. When I press enter, it processes the code I've entered, and I am unable to figure out how to add an additional line of code e.g. for a basic loop. 回答1: In the python shell, if you are typing code that allows for continuation, pressing enter once should not execute the code... The python prompt looks like this: >>> If you start a for loop or type something where python expects more from you the prompt should change to an elipse. For example: >>>