Commit 8100b07e by BellCodeEditor

save project

parent 9b883005
Showing with 3 additions and 2 deletions
...@@ -5,4 +5,5 @@ class Hero: ...@@ -5,4 +5,5 @@ class Hero:
self.attack = 20 self.attack = 20
anbei = Hero() anbei = Hero()
print("安倍的血量为:",anbei.hp) print("安倍的血量为:",anbei.hp)
print("安倍的攻击力为:",anbei.attack) print("安倍的攻击力为:",anbei.attack)
\ No newline at end of file sang=Hero('')
\ 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