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文件

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值