YH's Blog

Will be updated soon.
Google
 

Monday, April 28, 2008

 

Strange Python

Here python means a programming language not the animal.

I've heard of python for some time. some people said it's easy and simple to use. That may be true for those people who have no programming background. As python for me, i feel it's a much stranger than those I'm using, such as java, c++.....

first, an additional new line can give you trouble. After I declared a dictionary varable and put a curly bracket(to initialize) in a new line,i got an error of "indentation error" something alike. this error disappeared soon after i put the first curly bracket right after the equality mark.

second there is no block facility in python. maybe i'm wrong about this. I have no much idea how python knows where is the end of a function. Anyway,the interpreter translated my function properly like magic.

suffered a bit on python, need to go back and relax perl.

Learning a new programming language can refresh your mind somehow.


Comments: Post a Comment

Subscribe to Post Comments [Atom]





<< Home

Archives

July 2006   August 2006   September 2006   October 2006   August 2007   November 2007   March 2008   April 2008   May 2008   October 2008  

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]