def changePrice(self,newPrice):
if type(newPrice) is int:
self.__price = newPrice
else:
print("本次价格修改不成功")
posted on 2018-08-29 23:26  yellwonfin  阅读(150)  评论(0)    收藏  举报