Commit 09089178 by BellCodeEditor

save project

parent 3136896d
Showing with 4 additions and 3 deletions
...@@ -5,5 +5,6 @@ class Hero: ...@@ -5,5 +5,6 @@ class Hero:
self.hp = hp self.hp = hp
self.attack = attack self.attack = attack
laoshi = Hero('老师',99999,100) laoshi = Hero('老师',99999,100)
banzhuren = Hero('班主任'199999199) banzhuren = Hero('班主任',199999,199)
print('老师的血量值为:',laoshi.hp) print('老师的血量值为:',laoshi.hp)
\ No newline at end of file print('班主任的血量值为:',banzhuren.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