'''
* @Author: csy 
* @Date: 2019-05-09 15:33:40 
* @Last Modified by:   csy 
* @Last Modified time: 2019-05-09 15:33:40 
'''
# -*- coding: utf-8 -*-


class MyClass:
    count = 0
    name = 'DefaultName'

    def __init__(self, name):
        self.name = name
        print('类的变量是%s\n对象的变量是:%s' % (MyClass.name,  self.name))

    def setCount(self, count):
        self.count = count

    def getCount(self):
        return self.count


if __name__ == "__main__":
    cls = MyClass('lisi')
    cls.setCount(10)
    print('count=%d' % cls.getCount())
