Commit 3bd90fa7 by BellCodeEditor

save project

parent 8657eab0
Showing with 41 additions and 2 deletions
...@@ -15,7 +15,47 @@ class Hero(object): ...@@ -15,7 +15,47 @@ class Hero(object):
print(lino1+lion2+ lion3) print(lino1+lion2+ lion3)
else : else :
lion3=goji.name+'趋势' 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("垭瑟") yase = Hero("垭瑟")
houyi= Hero("后羿") houyi= Hero("后羿")
yase.combat(houyi) 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