一些语法

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