Commit ae0c9f54 by BellCodeEditor

save project

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