Commit bf79c45d by BellCodeEditor

save project

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