Commit d6216770 by BellCodeEditor

save project

parent 3647b461
Showing with 3 additions and 3 deletions
......@@ -5,8 +5,8 @@ class Heros:
m.hp = hp
m.level = 1
m.attack = attack
def updata(m):
monkey.hp += 50
monkey = Heros("孙猴子",5,50000)
def updata():
monkey.hp += 50
updata()
monkey.updata()
print(monkey.name+"der血量是"+str(monkey.hp))
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