C++
1.首先在终端创建一个C++文件
touch helloworld.cpp
2.把你的程序写进文件中
gedit helloworld.cpp
3.保存退出
Ctrl+s
4.编译成可执行文件
g++ helloworld.cpp -o helloworld
5.执行
./helloworld
Python
相同的,创建一个python文件
touch helloworld.py
2.把你的程序写进文件中
gedit helloworld.cpp
3.保存退出
Ctrl+s
4.编译执行
python helloworld.py