Linux环境变量的配置
大多数的linux系统已经安装了python
你可以在终端输入python查看你的python版本
如果是2.7版本,轻输入python3查看python3
mosheng@mosheng-virtual-machine:~$ python
Python 2.7.15+ (default, Oct 7 2019, 17:39:04)
[GCC 7.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
用ctrl+D或者exit()退出
mosheng@mosheng-virtual-machine:~$ python3
Python 3.6.8 (default, Oct 7 2019, 12:59:55)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
安装文本编辑器
sudo apt-get geany
Geany是一款简单的文本编辑器:它易于安装;让你能够直接运行几乎所有的程序(而无需 通过终端来运行);使用不同的颜色来显示代码,以突出代码语法;在终端窗口中运行代码,让 你能够习惯使用终端。
运行H