描述 delattr 函数用于删除属性。 delattr(x, 'foobar') 相等于 del x.foobar。 语法 以下是 delattr() 方法的语法: delattr(object,...