How do I create a line-break in Terminal?

后端 未结 6 2237
佛祖请我去吃肉
佛祖请我去吃肉 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:17

    It almost sounds, by the way you've worded your question, that you're trying to execute your python commands at the regular shell prompt rather than within the Python shell.

    Did you type "python" as the first step? For example:

    $ python
    Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) 
    [GCC 4.2.1 (Apple Inc. build 5646)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> 
    

提交回复
热议问题