标签:incr div ase turn 字符串 utf-8 code color 方法
#coding=utf-8 #repr方法字符串输出实例对象的值 class CountFromBy(object): def __init__(self, val=0, incr=1): self.val = val self.incr = incr def increase(self): self.val += self.incr def __repr__(self): return str(self.val) >>> c = CountFromBy() >>> c 0
标签:incr div ase turn 字符串 utf-8 code color 方法
原文地址:https://www.cnblogs.com/themost/p/9227256.html