专题文章
时长:00:00更新时间:2020-11-27 14:24:51
# -*- coding: utf-8 -*-"。"。"。Created on Sun Nov 13 23:19:03 2016 @author: toby"。"。"。#知识点:用装饰器@property,把方法变成一个特性 class Province: memo = '。One of China'。s 23 provinces'。The sports meeting'。#把方法变成一个特性 @property #自带的装饰器 def Bar(self): print self.Name return '。somthing'。hebei'。,'。shjiazhuang'。,'。
查看详情