📜  为 BrilliantUser 对象创建类 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:32.542000             🧑  作者: Mango

代码示例1
class brilliantUser(object):
    def __init__(self, name, age, rating):
      self.name = name
      self.age = age
      self.rating = rating

#We can create an object brilliant for user 


user = brilliantUser('Mursalin', 17, 4)