Commit aa7bee30 by BellCodeEditor

save project

parent da60e227
Showing with 6 additions and 2 deletions
...@@ -19,4 +19,8 @@ class Hero(object): ...@@ -19,4 +19,8 @@ class Hero(object):
yase = Hero("垭瑟") yase = Hero("垭瑟")
houyi= Hero("后羿") houyi= Hero("后羿")
yase.combat(houyi) yase.combat(houyi)
\ No newline at end of file
def combat(self, enemy):
info1 = self.name+"对"+enemy.name+"发起进攻,"
inio2 =
\ 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