Commit 7117fcf0 by BellCodeEditor

save project

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