Commit c2bccc98 by BellCodeEditor

save project

parent 5f244abc
Showing with 2 additions and 0 deletions
...@@ -12,6 +12,8 @@ def up(self): ...@@ -12,6 +12,8 @@ def up(self):
self.hp=self.hp+500 self.hp=self.hp+500
self.level=self.level+1 self.level=self.level+1
self.attack=self.attack+100 self.attack=self.attack+100
yao = hero("耀",3000,600)
yao.up() yao.up()
print("耀的属性发生了变化!") print("耀的属性发生了变化!")
print("耀的血量为:",yao.hp) print("耀的血量为:",yao.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