Commit 861454f9 by BellCodeEditor

save project

parent 3db47518
Showing with 3 additions and 2 deletions
......@@ -4,7 +4,7 @@ class Hero():
self.name=name
self.hp=hp
self.attack=attack
yase=Hero("鲁班",300,20)
houyi=Hero("关羽",250,23)
luban=Hero("鲁班",300,20)
guanyu=Hero("关羽",250,23)
print("鲁班的血量为:",luban.hp)
print("关羽的血量为:",guanyu.hp)
\ 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