2020年6月6日

property 类方法变属性

摘要: 函数作用: 在新式类中返回属性值。 语法 : class property([fget[, fset[, fdel[, doc]]]]) fget -- 获取属性值的函数 fset -- 设置属性值的函数 fdel -- 删除属性值函数 doc -- 属性描述信息 示例: class C: def 阅读全文

posted @ 2020-06-06 11:42 孔扎根 阅读(231) 评论(0) 推荐(0) 编辑

导航