Commit cb2c06c0 by BellCodeEditor

save project

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