Commit bfefbaa8 by BellCodeEditor

save project

parent ffa7db28
Showing with 4 additions and 1 deletions
......@@ -10,5 +10,8 @@ class Hero():
self.attack = self.attack+4
yase = Hero("yase",300,20)
houyi = Hero("hoyi",250,23)
yase.upgrade():
print("等级为,",yase.level)
print("血量为:",yase,hp)
print("攻击力为",yase.attack)
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