摘要: Python描述符的使用 前言 作为一位python的使用者,你可能使用python有一段时间了,但是对于python中的描述符却未必使用过,接下来是对描述符使用的介绍 场景介绍 为了引入描述符的使用,我们先设计一个非常简单的类: class Product(): def __init__(self 阅读全文
posted @ 2019-03-16 01:29 sfencs 阅读(3115) 评论(0) 推荐(4) 编辑