Commit 50455532 by BellCodeEditor

save project

parent aa1ec594
Showing with 3 additions and 3 deletions
...@@ -9,9 +9,9 @@ def uprrade(): ...@@ -9,9 +9,9 @@ def uprrade():
yase.hp=yase.hp+50 yase.hp=yase.hp+50
yase.attack=yase.attack+4 yase.attack=yase.attack+4
yase=Hero('yase',300,20) yase=Hero('yase',300,20)
print("yase的属性:",yase.hp)
uprrade() yase.uprrade()
uprrade() yase.uprrade()
print("调用两次后等级为",yase.level) print("调用两次后等级为",yase.level)
print("调用两次后防御力为",yase.hp) print("调用两次后防御力为",yase.hp)
print("调用两次后攻击力为",yase.attack) 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