Commit 2bf99429 by BellCodeEditor

save project

parent a20b41e3
Showing with 5 additions and 5 deletions
class Hero:
def __init___(self,level,hp,atk,defn):
def __init__(self,name,level,hp,atk):
self.name=name
self.level=level
self.hp=hp
self.atk=atk
self.defn=defn
houyi=Hero("后羿",15,7500,3000,1500)
print("属性表")
print("level:",houyi.level)
houyi = Hero("后羿",15,7500,3000)
print("level:",houyi.level)
\ 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