Commit c0ce53a7 by BellCodeEditor

auto save

parent f47689a4
Showing with 13 additions and 0 deletions
class Hero:
def _init_(self,name,hp,attack):
self.hp=hp
self.attack=attack
self.name=name
yase=Hero("yase",10,25)
print(yase.hp)
def upgrande():
yase.leavl=yase.leavl+1
yase.hp=yase.hp+50
yase.attack=yase.attack+4
\ 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