def changePrice(self,newPrice):
if type(newPrice) is int:
self.__price = newPrice
else:
print("本次价格修改不成功")
一些语法
推荐阅读
- 数据库之一
- 移动端开发适配总结
- jQuery学习笔记(二):this相关问题及选择器
- js的单线程和异步
- 理解CSS3中的background-size(对响应性图片等比例缩放)
- vim less vi 不显示富文本 ESC
- These dependencies were not found: *!!vue-style-loader!css-loader?
- Error: unable to load xmlsec-openssl library
- /debug/requests is already registered. You may have two independent copies of golang.org/x/net/trace in your binary, trying to maintain separate state. This may involve a vendored copy of golang.org/x
- Linux ubuntu centos 下 grep显示前后几行信息