Python内置函数delattr的具体用法
delattr 函数用于删除属性。delattr This is a relative of setattr(). The arguments are an object and a string. The string must be the name of one of the object's attributes. The function deletes the named attribute, provided the object allows it. For example, delattr is equivalent to del x.foobar.说明: 其他的一些补充
用户评论