Commit 9763159d by BellCodeEditor

save project

parent 044afe7f
Showing with 8 additions and 2 deletions
...@@ -12,4 +12,10 @@ print("后血:",houyi.hp) ...@@ -12,4 +12,10 @@ print("后血:",houyi.hp)
def a(): def a():
yase.level = yase.level+1 yase.level = yase.level+1
yase.hp = yase.hp+50 yase.hp = yase.hp+50
yase.attack = yase.attack+4 yase.attack = yase.attack+4
\ No newline at end of file
yase = Hero("亚瑟",300,20)
yase.a()
print("等为:",yase.level)
print("血为:",yase.hp)
print("攻为:",yase.attack)
\ No newline at end of file
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