python 的类 和 静态方法

log = print

# python 的类 和 静态方法
class Student(object):
    school = {
        "globle": {
            "localOffset": 0,
        }
    }

    @staticmethod
    def test():
        Student.school['function_name'] = {
            "localOffset": 0,
            "return_bytes": 123,
        }
        log("Student.school11111", Student.school)



Student.test()


你可能感兴趣的:(python 的类 和 静态方法)