it is the really start of my learning python languange. for i have no much time ,i intend to learn sth without succession. just for a hobby ,not for the pressure of other stuff such as work .
note: the python is built in ubuntu. so when you indtall the ubuntu ,you can get it easily. what we need to do now is to type the command in the terminal; python -V . it shows like this : chrysanthemumwolf@chrysanthemumwolf-laptop:~$ python -V
Python 2.6.4rc2
wa,it is the rc version. it doesn`t matter anyhow.be careful if you are in windows command line,you should add the dir of python to the variable PATH,which ensure you run successfully. the details is not my talk ,so just leave it out.
i will follow the convention of programming education that is when you first learn a new language (programming language),you may firstly run the hello world program . so just do it right away.
chrysanthemumwolf@chrysanthemumwolf-laptop:~$ python
Python 2.6.4rc2 (r264rc2:75497, Oct 20 2009, 02:55:11)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print 'hello world'
hello world
>>>
the >>> signs are the prompt that remind you of entering a statements.
so lt is kind of like the linux shell which is :
chrysanthemumwolf@chrysanthemumwolf-laptop:~$ printf 'hello world/n'
hello world
but it is not the same .one letter 'f' is the diffience.
of course we can pick up a editor for writing the code of python. in linux ,vim or emacs is the first choice. in windows the python take a editor with him when you instal it . it is ok . but still we have more choices ,gvim,notepad for example.