1.不需要显式声明数据类型
a=100.0
b=201.1
c=2343
print (a+b+c)/c
2.字符串访问
word="abcdefg"
b=word[1:3]
print "b is: "+b # index 1 and 2 elements of word.
f=word[-1]
print "f is: "+f # The last elements of word.
g=word[-4:-2]
print "g is: "+g # index 3 and 4 elements of word.
3.函数定义