Commit 508c8507 by BellCodeEditor

save project

parent 24dfc156
Showing with 5 additions and 3 deletions
...@@ -3,5 +3,7 @@ class Hero: ...@@ -3,5 +3,7 @@ class Hero:
self.level = 1 self.level = 1
self.hp = 300 self.hp = 300
self.attack = 20 self.attack = 20
yase = Hero() YaSe = Hero()
print(yase.hp) print(YaSe.level)
\ No newline at end of file print(YaSe.hp)
print(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