退出python交互模式_python如何退出交互模式
生活随笔
收集整理的這篇文章主要介紹了
退出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 日志不会按照日期分割_py
- 下一篇: 驱动开发起步