Commit 60448e20 by BellCodeEditor

save project

parent 96df64c8
Showing with 3 additions and 2 deletions
...@@ -4,7 +4,7 @@ class Hero(): ...@@ -4,7 +4,7 @@ class Hero():
self.level=level self.level=level
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
Lan=Hero('Lan',7,50,100) Lan=Hero('',7,50,100)
WuKong=Hero('WuKong',5,80,50) WuKong=Hero('孙悟空',5,80,50)
print(Lan.hp) print(Lan.hp)
print(WuKong.hp) print(WuKong.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