Commit 37ec6f70 by BellCodeEditor

save project

parent c0997086
Showing with 3 additions and 2 deletions
...@@ -5,8 +5,8 @@ class Hero: ...@@ -5,8 +5,8 @@ class Hero:
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
yase = Hero("1"300,20) yase = Hero("1",300,20)
hyi = Hero("2"250,23 ) hyi = Hero("2",250,23)
print("...................."%yase.level,yase.name,yase.hp,.yase.attack) print("...................."%yase.level,yase.name,yase.hp,.yase.attack)
print("...................."%hyi.level,hyi.name,hyi.hp,.hyi.attack) print("...................."%hyi.level,hyi.name,hyi.hp,.hyi.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