随笔分类 -  作业

摘要:作业 1 写一个类,有个name属性,如果name赋值为非字符串,就不让放 class mytest: def __init__(self): pass def __setattr__(self, key, value): if type(value) is str: #判断类型进行比较 super 阅读全文
posted @ 2021-06-08 19:00 欧阳锦涛 阅读(34) 评论(0) 推荐(0)

TOP 底部