一些語法

def changePrice(self,newPrice):    if type(newPrice) is int:        self.__price = newPrice    else:        print("本次價格修改不成功")
相關文章
相關標籤/搜索