Commit 9bebf302 by BellCodeEditor

auto save

parent c456bf2d
Showing with 12 additions and 0 deletions
class hero():
def __init__(self,a,b,c):
self.level=a
self.hp=b
self.attack=c
def upgrade():
yase.level+=1
yase.hp+=40
yase.attack+=30
yase=hero(1,500,40)
upgrade()
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