1.Getting Started

第一章

Python命令行界面退出

  • windows系统操作

    1. 按键盘按键ctrl + z后,在按回车Enter,退出

      C:\Users\z>python
      Python 3.7.8rc1 (tags/v3.7.8rc1:5f3933d61d, Jun 17 2020, 16:59:29) [MSC v.1916 64 bit (AMD64)] on win32
      Type “help”, “copyright”, “credits” or “license” for more information.

      >>>^Z

      C:\Users\z>

    2. 命令行界面输出exit()

      C:\Users\z>python
      Python 3.7.8rc1 (tags/v3.7.8rc1:5f3933d61d, Jun 17 2020, 16:59:29) [MSC v.1916 64 bit (AMD64)] on win32
      Type “help”, “copyright”, “credits” or “license” for more information.
      >>> exit()

      C:\Users\z>

  • linux系统操作

    1. 按键盘按键ctrl + d退出

      [root@CTRL originhttp]# python
      Python 3.7.4 (default, Sep 27 2020, 12:47:01)
      [GCC 7.3.0] on linux
      Type “help”, “copyright”, “credits” or “license” for more information.
      >>>
      [root@CTRL originhttp]#

    2. 命令行界面输出exit()

      [root@CTRL originhttp]# python
      Python 3.7.4 (default, Sep 27 2020, 12:47:01)
      [GCC 7.3.0] on linux
      Type “help”, “copyright”, “credits” or “license” for more information.
      >>> exit()
      [root@CTRL originhttp]#

使用sublime运行Python代码

  • 设置

    Tools–>Build System --> Automatic

    这样设置了之后就可以根据你的文件后缀,自动选择对应的编译器

  • 运行python

    通过按ctrl + B,执行python文件

posted @ 2020-12-11 11:35  zlbingo  阅读(53)  评论(0)    收藏  举报