Commit c77c6014 by BellCodeEditor

auto save

parent d6c81a0f
Showing with 13 additions and 0 deletions
class hero:
def __init__(self,lv,hp,at):
self.lv=lv
self.hp=hp
self.at=at
yase=hero(2,3,4)
def ij():
yase.lv=yase.lv+1
yase.hp=yase.hp+50
yase.at=yase.at+5
ij()
print(yase.lv)
\ 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