Commit 2677038b by BellCodeEditor

save project

parent d33894d9
Showing with 7 additions and 2 deletions
...@@ -7,5 +7,10 @@ class Hero: ...@@ -7,5 +7,10 @@ class Hero:
yase=Hero('yase',300,20) yase=Hero('yase',300,20)
hy=Hero('hy',250,23) hy=Hero('hy',250,23)
fhc=Hero('fhc',350,140) fhc=Hero('fhc',350,140)
print(fhc.name) def sj():
+ self.level+1
self.hp+50
self.attack+5
yase.sj()
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