__init__ 可以理解成初始化 class 的变量,取自英文中 initial 最初的意思. ... def __init__(self,name,price,height,width,weight): # 注意,这里的 ...
確定! 回上一頁