Commit cb2c06c0 by BellCodeEditor

save project

parent f34c3a8b
Showing with 4 additions and 7 deletions
...@@ -5,10 +5,7 @@ class Hero: ...@@ -5,10 +5,7 @@ class Hero:
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
yase=Hero('亚瑟',300,20) yase=Hero('亚瑟',300,20)
yase=Hero('后羿',250,25) hy=Hero('后羿',250,25)
k=Hero('K',5600,199) print('亚瑟血量:',yase.hp)
print(yase.attack) print('后羿血量:',hy.hp)
print(hy.attack)
print(k.attack)
arte=Hero('arte',7800,6880)
print(arte.name,arte.hp,arte.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