📜  实例变量 python 代码示例

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

代码示例3
class Car:    
  wheels = 4    # <- Class variable    
  
  def __init__(self, name):        
      self.name = name    # <- Instance variable