python解释器的提示符是什么-Python教程

资源魔 43 0
正在终端(tty)输出并执行指令时,咱们说诠释器是运转正在交互模式(interactive mode)。正在这类模式中,它会显示“主提醒符“(primary prompt),提醒输出下一条指令,通罕用三个年夜于号(>>>)示意;延续输出行的时分,它会显示“主要提醒符”,默许是三个点(...)。进入诠释器时,它会先显示欢送信息、版本信息、版权申明,而后就会呈现提醒符:

$ python3.7
Python 3.7 (default, Sep 16 2015, 09:25:04)
[GCC 4.8.2] on linuxType "help", "copyright", "credits" or "license" for more information.
>>>

相干保举:《Python视频教程》

多行指令需求正在延续的多行中输出。比方,以 if 为例:

>>> the_world_is_flat = True
>>> if the_world_is_flat:
...     print("Be careful not to fall off!")
...
Be careful not to fall off!

以上就是python诠释器的提醒符是甚么的具体内容,更多请存眷资源魔其它相干文章!

标签: Python python教程 python编程 python使用问题 解释器 提示符

抱歉,评论功能暂时关闭!