1、安装python3环境
windows:
到python官网下载python3安装包,下载地址:https://www.python.org/ftp/python/3.7.3/python-3.7.3-amd64.exe
双击安装运行即可,注意:需要勾选add python 3.7 to path
linux:
官网下载gz源码包:wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz
tar -zxvf Python-3.7.3.tgz
cd Python-3.7.3/
yum install gcc zlib* libffi-devel -y
./configure prefix=/usr/local/python3
make && make install
ln -s /usr/local/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
2、Hello World程序
print("Hello,world!")
3、安装geany文本编辑器
从官网下载geany安装包:https://download.geany.org/geany-1.35_setup.exe
双击默认安装即可
安装完就可以编辑代码,注意文件名要以.py结尾,按F5运行