Commit 167dc191 by BellCodeEditor

save project

parent dcaaea86
Showing with 5 additions and 3 deletions
...@@ -5,5 +5,8 @@ class hero: ...@@ -5,5 +5,8 @@ class hero:
self.a=attack self.a=attack
d=hero('yase',300,20) d=hero('yase',300,20)
f=hero('simayi',500,236) f=hero('simayi',500,236)
print(d.b) def upgrade(h):
print(f.b) h.a=h.a+50
\ No newline at end of file h.b=h.b+50
upgrade(f)
print(f.a)
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