我是 python 新手,完全是编程菜鸟,所以请耐心等待。
如果我正在构建显示人员类
class Person:
def __init__ (self, Name, Address, Phone, Height, Weight):
self.name = Name
self. Address = Address
self.Phone = Phone
self.Height = Height
self.Weight = Weight
self.PoundserPerInch = int(Height) / int(Weight)
该函数究竟__init__()
对代码做了什么?