规范输出

This commit is contained in:
Jerry Yan 2019-12-31 12:11:13 +08:00
parent 608f6924e3
commit 28ed1df26b

View File

@ -50,3 +50,6 @@ class User:
def __unicode__(self):
return self.__str__()
def __repr__(self):
return "西瓜用户【{}(ID:{})】".format(self.name, self.ID)