Commit 6488d82e by BellCodeEditor

save project

parent e4eca752
Showing with 10 additions and 3 deletions
...@@ -17,7 +17,7 @@ class Hero(object): ...@@ -17,7 +17,7 @@ class Hero(object):
print(info1 + info2 + info3) print(info1 + info2 + info3)
yase = Hero("垭瑟") yase = Hero(“垭瑟”)
class p(Hero): class p(Hero):
...@@ -26,4 +26,11 @@ class p(Hero): ...@@ -26,4 +26,11 @@ class p(Hero):
self.hp = 3000 self.hp = 3000
self.attack = 455 self.attack = 455
self.name = name self.name = name
houyi=p() houyi=p("鲁班","射手")
\ No newline at end of file houyi=p("后裔","射手")
yase=Hero(“垭瑟”)
yase=combat(houyi)
yase=combat(houyi)
houyi.combat(yase)
luban.combat(yase)
\ 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