Commit 8c8b37fc by BellCodeEditor

save project

parent 91bce442
Showing with 7 additions and 7 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
亚瑟=Hero('亚瑟',300,20) yase=Hero('亚瑟',300,20)
后羿=Hero('后羿',250,23) hy=Hero('后羿',250,23)
=Hero('凯',190,199) k=Hero('凯',190,199)
print(亚瑟.attack) print(ya .attack)
print(后羿.attack) print(hy.attack)
print(.attack) print(k.attack)
\ No newline at end of file \ 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