How do I create a line-break in Terminal?

后端 未结 6 2394
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-08 05:48

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

6条回答
  •  忘掉有多难
    2021-02-08 06:21

    The statements which represent a block of code below end with a colon(:) in Python.

    By doing that way, you can add extra statements under a single block and execute them at once.

提交回复
热议问题