Commit 3145862b by BellCodeEditor

save project

parent 4d111e7d
Showing with 4 additions and 4 deletions
class Hero(): class Hero():
def __init__(n): def __init__(n,name,level,Hp,attck):
n.level=1 n.level=1
n.Hp=1075 n.Hp=1075
n.attck=297 n.attck=297
YinHui=Hero() SilverAsh=Hero()
print(YinHui.level) print(SilverAsh.level)
\ No newline at end of file \ 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