Python内置函数delattr的具体用法

上传:qqarmor37980 浏览: 14 推荐: 0 文件:pdf 大小:97.15 KB 上传时间:2022-03-14 12:40:37 版权申诉

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.说明: 其他的一些补充

上传资源
用户评论