题解 | #牛客打工人#

牛客打工人

https://www.nowcoder.com/practice/c93c8863a5a94740b8e8633df198e42d

class Nowcoder():
    def __init__(self, name, ID, num):
        self.name = name
        self.ID = ID
        self.num = num
    
    def print(self):
        print(self.name, self.ID, self.num, sep = '\n')
    
niuniu = Nowcoder('NiuNiu', '100001', 678)
Nowcoder.print(niuniu)
        

全部评论

相关推荐

10-02 19:29
已编辑
浙江科技大学 运营
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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