Commit 91918f72 by BellCodeEditor

save project

parent e32ebe32
Showing with 11 additions and 0 deletions
...@@ -17,6 +17,16 @@ class Hero(object): ...@@ -17,6 +17,16 @@ class Hero(object):
print(info1 + info2 + info3) print(info1 + info2 + info3)
class player(H):
def__init__(self.name):
super().__init__(name)
self.hp=135009
self.ac=40019
player=player(BBL)
print(player.hp)
print(player.ac)
yase = Hero("垭瑟") yase = Hero("垭瑟")
houyi= Hero("后羿") houyi= Hero("后羿")
yase.combat(houyi) yase.combat(houyi)
\ 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