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