Commit 7117fcf0 by BellCodeEditor

save project

parent dd2aa11e
Showing with 2 additions and 8 deletions
...@@ -2,13 +2,8 @@ ...@@ -2,13 +2,8 @@
class Hero(object): class Hero(object):
def __init__(self, name): def __init__(self, name):
self.level = 1 self.level = 1
self.hp = 250 self.hp = 300
self.attack = 40 self.attack = 20
self.name = name self.name = name
def combat(): # 攻击
iny1 =
yase = Hero("垭瑟") yase = Hero("垭瑟")
houyi= Hero("后羿")
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