Commit 80949e85 by BellCodeEditor

auto save

parent 009a1f32
Showing with 9 additions and 2 deletions
...@@ -19,4 +19,11 @@ class Hero(object): ...@@ -19,4 +19,11 @@ class Hero(object):
yase = Hero("垭瑟") yase = Hero("垭瑟")
houyi= Hero("后羿") houyi= Hero("后羿")
yase.combat(houyi) yase.combat(houyi)
\ No newline at end of file
class ttt(Hero):
def __init__(self,name,attack):
super().__init__(name,attack)
self.hp=46
gh=ttt(Hero)
print(gh.hp)
\ 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