a page one day(1)

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.

 

 

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值