Commit 765cc063 by BellCodeEditor

save project

parent d6c81a0f
Showing with 15 additions and 0 deletions
class Hero:
def __init__(self,na,lv,hp,at):
self.na=na
self.lv=lv
self.hp=hp
self.at=at
yase=Hero("yase",1,300,20)
hoyi=Hero("hoyi",1,250,23)
def a():
yase.lv=yase.lv+1
yase.hp=yase.lv+100
yase.at=yase.at+5
a()
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