Commit ef3f7e96 by BellCodeEditor

auto save

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