Commit 51263269 by BellCodeEditor

auto save

parent 8e47e5b8
Showing with 15 additions and 0 deletions
class yingxiong:
def __init__(self,name,hp,gj,dj):
self.name = name
self.hp = hp
self.gj = gj
self.dj = dj
def kan(self,diren):
diren.hp = diren.hp - 40
print("boss的血量还有:",diren.hp)
tianyu = yingxiong("tianyu",1000,20,1)
boss = yingxiong("boss",100000,10,10)
tianyu.kan(boss)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment