Commit 96673436 by BellCodeEditor

auto save

parent 3dfd4100
Showing with 10 additions and 3 deletions
...@@ -18,5 +18,12 @@ class Hero(object): ...@@ -18,5 +18,12 @@ class Hero(object):
yase = Hero("垭瑟") yase = Hero("垭瑟")
houyi= Hero("后羿")
yase.combat(houyi)
\ No newline at end of file class p(Hero):
def __init__(self, name):
self.level = 1
self.hp = 3000
self.attack = 455
self.name = name
houyi=p()
\ 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