# 以c语言为主是静态语言,运行之前先编译,在运行的过程中不允许编辑代码# 在运行的过程中,可以改变,可以添加属性,就是属于动态语言(python) # python动态的添加属性以及方法class Test(object): pass # t = Test()# print(dir(t)) # 运行的过程中给对象绑定(添加)属性class Person(object): def __init__(self,newName,newAge): self.name = newName self.ag…