Commit 173d10f7 by BellCodeEditor

save project

parent 68bbf76c
Showing with 7 additions and 5 deletions
...@@ -4,12 +4,13 @@ class Hero: ...@@ -4,12 +4,13 @@ class Hero:
self.name = name self.name = name
self.hp = hp self.hp = hp
self.at = at self.at = at
def sj(self):
self.lever += 1
self.hp += 4
self.at +=2
wk = Hero("wk",100,30) wk = Hero("wk",100,30)
hy = Hero("hy",90,40) hy = Hero("hy",90,40)
def sj():
wk.lever += 1 wk.sj()
wk.hp += 4
wk.at +=2
sj()
print(wk.hp) print(wk.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