Commit fb53db85 by BellCodeEditor

save project

parent 3b53cfa6
Showing with 3 additions and 2 deletions
...@@ -6,4 +6,5 @@ class Hero: ...@@ -6,4 +6,5 @@ class Hero:
self.attack=attack self.attack=attack
yase=Hero('亚瑟',300,20) yase=Hero('亚瑟',300,20)
houyi=Hero('后羿',250,23) houyi=Hero('后羿',250,23)
print(houyi.attack) print('亚瑟的血量是',yase.hp)
\ No newline at end of file print('后羿的血量是',houyi.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