Commit 346ddce7 by BellCodeEditor

save project

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