Commit bf79c45d by BellCodeEditor

save project

parent 346ddce7
Showing with 1 additions and 2 deletions
......@@ -5,8 +5,7 @@ class Hero:
self.hp=hp
self.atk=atk
self.defn=defn
print("属性表:")
print("level:",houyi.level)
houyi = Hero("后羿",1,500,100,40)
def HouyiupL():
houyi.level+=1
houyi.hp+=250
......
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