Commit a20b41e3 by BellCodeEditor

save project

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