17. python 类

class Chinese:
    hair = 'black'
    def smart(self):
        print('Chinese are smart %s'%self)

print(Chinese.hair)

Chinese.smart('怀特')

print(Chinese.__dict__)

Chinese.__dict__['smart']('white')