Commit 95de8397 by BellCodeEditor

save project

parent 436de7bb
Showing with 10 additions and 10 deletions
......@@ -4,16 +4,16 @@ class Hero:
self.HP = hp
self.ateack = ateack
self.neme = neme
def a(self):
self.level = self.level + 1
self.HP = self.HP + 50
self.ateack = self.ateack + 10
yase = Hero("亚瑟",300,30)
hoyi = Hero("后羿",270,35)
yase = Hero("亚瑟",300,50)
hoyi = Hero("后羿",370,80)
def a():
yase.level = yase.level + 1
yase.HP = yase.HP + 50
yase.ateack = yase.ateack + 10
yase.a()
hoyi.a()
a_yase()
print(yase.level)
print(yase.HP)
print(yase.ateack)
\ No newline at end of file
print(hoyi.HP)
\ 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