Commit 3bd90fa7 by BellCodeEditor

save project

parent 8657eab0
Showing with 40 additions and 0 deletions
......@@ -16,6 +16,46 @@ class Hero(object):
else :
lion3=goji.name+'趋势'
class le(Hero):
def __init__(self,name):
super(). __init__(name)
self.hp = 230
self.attack =70
le=le('xxx')
print(le.hp)
print(le.attack)
yase = Hero("垭瑟")
houyi= Hero("后羿")
yase.combat(houyi)
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