Commit caf8c9ae by BellCodeEditor

save project

parent 0eda6bf9
Showing with 4 additions and 3 deletions
...@@ -4,6 +4,7 @@ class Hero: ...@@ -4,6 +4,7 @@ class Hero:
seif.hp=hp seif.hp=hp
seif.attack=attack seif.attack=attack
yase=Hero("亚瑟",300,30) yase=Hero("亚瑟",300,30)
honyi=Hero("后羿",250,30)
print("亚瑟的血量",yase.hp) print("亚瑟的血量",yase.hp)
print("后羿的血量",yase.hp) upgrape()
\ No newline at end of file upgrape()
print("升级三次,亚瑟的血量:",yase.hp)
\ 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