Commit 167dc191 by BellCodeEditor

save project

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