Commit b50857b8 by BellCodeEditor

save project

parent 175b8c35
Showing with 9 additions and 2 deletions
class Hero:
def
\ No newline at end of file
def __init__(self,HP,MP,speed):
self.HP = HP
self.MP = MP
self.speed = speed
yase = Hero(300,200,120)
houyi = Hero(250,300,200)
print(yase.HP)
print(houyi.HP)
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