python 自定义属性的访问机制

2019-08-23  本文已影响0人  足__迹

内置函数:

setattr :给对象设置属性
getattr:获取对象竖属性值
delattr :删除对象属性值

上一篇 下一篇

猜你喜欢

热点阅读