Commit e83ae5c1 by BellCodeEditor

save project

parent d6c81a0f
Showing with 19 additions and 0 deletions
class hero:
def __init__(self, w,t,y):
self.w=w
self.e=1
self.t=t
self.y=y
item=hero("he",300,50)
def uplevel():
item.e=item.e+1
item.t=item.t+50
item.y=item.y+4
uplevel()
print(item.w)
print(item.t)
print(item.y)
\ 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