python笔记(一) - Hello World

 

从 hello world开始

 1.从 http://www.python.org/ftp/python/选择最新的 Python Windows 安装程序, 下载 .exe 安装文件。

 2.开始菜单选择 IDLE(Python IDE) ,打开python shell

    这就是python自带的编辑器了

Python 2.5.4 (r254:67916, Dec 23 200815:10:54) [MSC v.1310 32 bit (Intel)] on win32
Type 
"copyright""credits" or "license()" for more information.

    
****************************************************************
    Personal firewall software may warn about the connection IDLE
    makes to its subprocess using this computer
's internal loopback
    interface.  This connection is not visible on any external
    interface 
and no data is sent to or received from the Internet.
    
****************************************************************
    
IDLE 
1.2.4      
>>>

 3.在>>>之后输入就可以进行python之旅了。

>>> print 'hello world'    
hello world                  
>>> 

 >>>之后就是你输入的内容了,回车就会执行了

 4,你也可以把代码保存为文件再执行

posted @ 2009-04-15 10:55  ________囧丶殇  阅读(155)  评论(0编辑  收藏  举报