Commit 68bbf76c by BellCodeEditor

save project

parent 8777f1b1
Showing with 7 additions and 0 deletions
...@@ -4,6 +4,12 @@ class Hero: ...@@ -4,6 +4,12 @@ class Hero:
self.name = name self.name = name
self.hp = hp self.hp = hp
self.at = at self.at = at
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.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