Commit f5313a1e by BellCodeEditor

save project

parent c40568ae
Showing with 4 additions and 2 deletions
...@@ -5,4 +5,6 @@ class Hero: ...@@ -5,4 +5,6 @@ class Hero:
self.hp = hp self.hp = hp
self.attack = attack self.attack = attack
old8 = Hero("老八",666,888) old8 = Hero("老八",666,888)
print(old8.hp) old6= Hero("老六",699,866)
\ No newline at end of file print(old8.hp)
print(old6.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