Python内置函数delattr的具体用法 delattr函数用于删除属性。delattr(x,'foobar')相等于delx.foobar。语法setattr语法:delattr(object,name) delattr函数