Commit ef3f7e96 by BellCodeEditor

auto save

parent 4c00dbd9
Showing with 12 additions and 4 deletions
...@@ -17,7 +17,15 @@ class Hero: ...@@ -17,7 +17,15 @@ class Hero:
infot=infot1+infot2+infot3 infot=infot1+infot2+infot3
print(infot) print(infot)
exit() exit()
yase=Hero("亚瑟") class Player(Hero):
houyi=Hero("后裔") def __init__(self,name):
yase.a(houyi) self.level=2
yase.a(houyi) self.hp=400
self.attack=80
self.name=name
b=Player("周杰伦")
print(b.attack)
# yase=Hero("亚瑟")
# houyi=player("后裔")
# yase.a(houyi)
# yase.a(houyi)
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