Commit 38de6a65 by BellCodeEditor

save project

parent 134aa2d4
Showing with 4 additions and 3 deletions
...@@ -4,9 +4,9 @@ class Hero: ...@@ -4,9 +4,9 @@ class Hero:
self.name=name self.name=name
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
yase=Hero('垭瑟',300,20) yase = Hero('垭瑟',300,20)
hy=Hero('后羿'',250,23) hy = Hero('后羿',250,23)
k=Hero('',280,22) k = Hero('凯',280,22)
print("垭瑟的血量为:",yase.attack) print("垭瑟的血量为:",yase.attack)
print("后羿的血量为:",hy.attack) print("后羿的血量为:",hy.attack)
print("凯的血量为:",k.attack) print("凯的血量为:",k.attack)
\ 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