Commit 63c35217 by BellCodeEditor

save project

parent 751666dc
Showing with 9 additions and 3 deletions
......@@ -4,12 +4,18 @@ class Hero:
self.hp=hp
self.attack=attack
self.name=name
yase=Hero("yase",300,40)
houy=Hero("houy",250,20)
print(yase.name)
def sb():
yase.level=yase.level+1
yase.hp=yase.hp+50
yase.attack=yase.attack+4
sb()
print(yase.hp)
yase=Hero("yase",300,20)
houy=Hero("houy",250,20)
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