Commit 2fb9be7b by BellCodeEditor

save project

parent a55cbe01
Showing with 12 additions and 3 deletions
class Hero:
def __init__(yase):
def __init__(yase,name,hp,attacr):
yase.level=1
yase.hp=300
yase.attack=20
yase.name=name
yase.hp=hp
yase.attack=attacr
yase=Hero()
print("血量是"+str(yase.hp))
class Hero:
def __init__(yase,name,hp,attacr):
yase.level=1
yase.name=name
yase.hp=hp
yase.attack=attacr
yase=Hero()
print("血量是"+str(yase.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