题解 | #打工人的统计#

打工人的统计

https://www.nowcoder.com/practice/849e33ddb8934372a8b18197bc59f5ac

class Nowcoder():
    days = 0

    def __init__(self, name, ID, num):
        self.name = name
        self.ID = ID
        self.num = num
        self.days += 1

    def print(self):
        print(self.name, self.ID, self.num, self.days, sep='\n')

a, b, c = input().split()
niuniu = Nowcoder(a, b, c)
Nowcoder.print(niuniu)
d, e, f = input().split()
niumei = Nowcoder(d, e, f)
Nowcoder.print(niumei)


全部评论

相关推荐

想玩飞盘的菠萝蜜在春...:上交✌🏻也拒?
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务