这个是跟多语言里都有的getter/setter方法,你在写hp=xxx的时候就会调用setter方法
瞅瞅这个https://www.runoob.com/python/python-func-property.html