Commit d6aa3115 by BellCodeEditor

save project

parent b6b3ffbd
Showing with 6 additions and 0 deletions
......@@ -7,3 +7,9 @@ class Hero:
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)
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