题解 | #打工人的统计#
打工人的统计
https://www.nowcoder.com/practice/849e33ddb8934372a8b18197bc59f5ac
class Nowcoder: def __init__(self,name,ID,num,days=0): self.name=name self.ID=ID self.num=num self.days=days def day_add(self): self.days +=1 def printff(self): print(self.name) print(self.ID) print(self.num) print(self.days) niuniu = input().split() niumei = input().split() niuniun = Nowcoder(name=niuniu[0],ID=niuniu[1],num=niuniu[2]) niuniun.day_add() niuniun.printff() niumein = Nowcoder(name=niumei[0],ID=niumei[1],num=niumei[2]) niumein.day_add() niumein.printff()
类!!!冲啊 复习复习捡起来小知识