Commit 7e963d9f by BellCodeEditor

auto save

parent 3e92266a
Showing with 9 additions and 2 deletions
...@@ -4,4 +4,11 @@ class Hero(object): ...@@ -4,4 +4,11 @@ class Hero(object):
self.level = 1 self.level = 1
self.hp = 250 self.hp = 250
self.attack = 40 self.attack = 40
self.name = self.name = name
\ No newline at end of file
def combat():
yase = Hero("垭瑟")
houyi = Hero("后羿")
yase.combat(houyi)
\ No newline at end of file
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