基于Python 输出字符HelloWorld简单总结

根据简明教程:

源文件

#!/usr/bin/python

# Filename : helloworld.py

print 'Hello World'

 

运行程序,打开shell键入命令python helloworld.py

需要注意的是:简明教程中没有说清楚的细节是,需要首先进入已经保存的文件helloworld.py所在的目录下,命令为 CD directory

例如:

 

若是不进入目录下则会出现:

python: can't open file 'python': [Errno 2] No such file or directory

以上为解决办法

posted @ 2017-08-18 22:58  云中摆渡的老船长  阅读(937)  评论(0编辑  收藏  举报

It's not who you are underneath, it's what you do that defines you

Brick walls are there for a reason :they let us prove how badly we want things