成都创新互联网站制作重庆分公司

创新互联Python教程:python如何退出交互模式

打开命令行,当输入“python”命令时,可以看到如下输出结果:

C:\Users\Administrator>python
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

此时便进入Python的交互模式

退出交互模式,可以使用exit()语句

C:\Users\Administrator>python
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()

C:\Users\Administrator>

如上,交互模式便退出了。

学习python,尽在python学习网!


当前标题:创新互联Python教程:python如何退出交互模式
当前网址:http://cxhlcq.com/article/djeccoe.html

其他资讯

在线咨询

微信咨询

电话咨询

028-86922220(工作日)

18980820575(7×24)

提交需求

返回顶部