Commit a6880963 by BellCodeEditor

save project

parent e9855434
Showing with 3 additions and 1 deletions
...@@ -4,4 +4,5 @@ class Hero: ...@@ -4,4 +4,5 @@ class Hero:
self.hp = 300 self.hp = 300
self.attack = 20 self.attack = 20
yase = Hero() yase = Hero()
print() print('yase的血量值是:',yase.hp)
print('yase的血量是:',yase.attack)
\ 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