Commit 1e2865d5 by BellCodeEditor

save project

parent a894cfb7
Showing with 5 additions and 0 deletions
...@@ -4,5 +4,10 @@ class Yase(): ...@@ -4,5 +4,10 @@ class Yase():
self.HP = HP self.HP = HP
self.attack = attack self.attack = attack
yase = Yase(500,40) yase = Yase(500,40)
def jj():
yase.HP = yase.HP + 50
yase.attack = yase.attack + 50
jj()
print(yase.HP) 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