Commit 32e9b956 by BellCodeEditor

save project

parent d6c81a0f
Showing with 12 additions and 0 deletions
class Hero:
def __init__(self,name,LV):
self.name=name
self.LV=LV
self.hp=LV*200
self.atk=LV*12
yase=Hero("yase",1)
hoyi=Hero("hoyi",1)
def up():
yase.LV=yase.LV+1
up()
print(yase.LV)
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