python快捷键位


windows系统中

control + c  结束正在运行的python程序

退出python shell-----control + Z

mac系统

结束终端中正在运行的python程序(当程序卡住或者死循环的时候可以用)   control + c

终端中退出                               python shell control + d 或者 exit()

打印当前电脑的 python3 版本                        python3  --version

打印当前电脑中python2的版本                      python --version 或者 python2 --version