Commit ca880649 by BellCodeEditor

save project

parent 59b28f16
Showing with 8 additions and 2 deletions
...@@ -9,4 +9,10 @@ class hero: ...@@ -9,4 +9,10 @@ class hero:
yase = hero() yase = hero()
print("yase的血量值为:",yase.hp) print("yase的血量值为:",yase.hp)
print("yase的攻击力为:",yase.atteack) print("yase的攻击力为:",yase.atteack)
\ No newline at end of file
yase = hero("亚瑟",300,20)
print("亚瑟的初始血量值为:",yase.hp)
uparade()
upgrade()
print("升级2次后,亚瑟的血量值为")
\ 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