Commit fa9bbd89 by BellCodeEditor

save project

parent cb73049d
Showing with 3 additions and 2 deletions
...@@ -6,5 +6,6 @@ class Hero: ...@@ -6,5 +6,6 @@ class Hero:
self.attack=attack self.attack=attack
yase=Hero('亚瑟',300,20) yase=Hero('亚瑟',300,20)
houyi=Hero('后裔',250,23) houyi=Hero('后裔',250,23)
print(yase.name) print(yase.hp)
print(houyi.hp) print(houyi.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