会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wyazz
博客园
首页
新随笔
联系
订阅
管理
01 2021 档案
python3 使用数据描述器,验证字段类型
摘要:class Typed: def __init__(self,type,name): self.type = type #name 存储变量 self.name = name def __set__(self, instance, value): if not isinstance(value,se
阅读全文
posted @
2021-01-29 08:53
Young_Mo
阅读(141)
评论(0)
推荐(0)
公告