Commit 2af6dc58 by BellCodeEditor

save project

parent 7bb1c8fb
Showing with 1 additions and 0 deletions
......@@ -10,6 +10,7 @@ class Hero:
self.attack=self.attack+30
yase=Hero("垭瑟",300,20)
houyi=Hero("后羿",250,23)
yase.upgrade()
print(yase.name,yase.hp,yase.attack)
print(houyi.name,houyi.hp,houyi.attack)
......
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