1.Python命令行
在linux下输入python(windows下点击开始->程序->Python 2.3 ->IDLE(Python GUI)
在>>>提示符后输入print('Hello World!')
会在窗口界面中显示如下界面
Hello World!
2.Python小程序
用文本编辑器写一个.py结尾的文件,比如说helloWorld.py中写入print("Hello World")
在命令提示符中输入python helloWorld.py,会在窗口中显示以下结果