题解 | #打工人的统计#
打工人的统计
https://www.nowcoder.com/practice/849e33ddb8934372a8b18197bc59f5ac
class Nowcoder: def __init__(self,name,ID,nums) -> None: self.name=name self.ID=ID self.nums=nums self.days=1 def print_info(self): print(self.name,self.ID,self.nums,self.days,sep='\n') name01=input().split() name02=input().split() NiuNiu= Nowcoder(name01[0],name01[1],name01[2]) NiuMei= Nowcoder(name02[0],name02[1],name02[2]) NiuNiu.print_info() NiuMei.print_info()