规范输出
This commit is contained in:
parent
608f6924e3
commit
28ed1df26b
@ -50,3 +50,6 @@ class User:
|
||||
|
||||
def __unicode__(self):
|
||||
return self.__str__()
|
||||
|
||||
def __repr__(self):
|
||||
return "西瓜用户【{}(ID:{})】".format(self.name, self.ID)
|
||||
|
Reference in New Issue
Block a user