Commit 87fbd69a by BellCodeEditor

save project

parent 3d20b37b
Showing with 5 additions and 4 deletions
......@@ -4,10 +4,10 @@ class Hero:
self.name=name
self.hp=hp
self.gj=gj
def sj():
yase.hp+=20
yase.level+=1
yase.gj+=20
def sj():
self.hp+=20
self.level+=1
self.gj+=20
yase=Hero("yase",200,23)
sj()
print(yase.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