Commit 7642c907 by BellCodeEditor

save project

parent 0fc44fa9
Showing with 4 additions and 4 deletions
...@@ -4,7 +4,7 @@ class Hero: ...@@ -4,7 +4,7 @@ class Hero:
self.name=name self.name=name
self.hp=hp self.hp=hp
self.attck=attck self.attck=attck
yase=Hero('亚瑟',300,20) yase=Hero("亚瑟",300,20)
houyi=Hero('后羿',240,30) houyi=Hero("后羿",240,24)
print(yase.hp) print(yase.hp)
print(houyi.name) print(houyi.hp)
\ 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