本文介绍在ubuntu的终端里直接编译运行python程序
工具/原料
安装有python解释器的python
方法/步骤
1
进入ubutun打开终端输入:
mkdir hellowpython
新建hellowpython这个文件夹,可以在文件夹里找到它
2
输入:
cd hellowpython
转入 hellowpython这个文件夹
3
输入:
touch 01-hipython.py
建立一个python的源文件,这个文件可以在hellowpython这个文件夹里找到