Commit 612efff5 by BellCodeEditor

save project

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