Commit 57e40b58 by BellCodeEditor

save project

parent 2b3256d0
Showing with 11 additions and 3 deletions
......@@ -18,7 +18,14 @@ class Hero(object):
yase = Hero("垭瑟")
houyi= Hero("后羿")
yase.combat(houyi)
for i in range(20):
#yase.combat(houyi)
class p(Hero):
def __init__(self, name):
self.level = 1
self.hp = 3000
self.attack = 500
self.name = name
houyi=p("后羿")#史丽华后羿
print(houyi,hp)
print(houyi,attck)
\ 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