定义类:
class A(object)
#!/usr/bin/python
class People(object):
color='yellow'
__age=30
def think(self):
self.color="black"
print "I am a %s" % self.color
print "I am a thinker"
print self.__age
ren=People()
print ren.color
ren.think()