Commit c0997086 by BellCodeEditor

save project

parent d8013866
Showing with 4 additions and 5 deletions
......@@ -6,8 +6,7 @@ class Hero:
self.attack=attack
yase = Hero("1"300,20)
hyi = Hero("2"250,23)
hyi = Hero("2"250,23 )
print("level: %d"%yase.level)
print("hp %d:"%yase.hp)
print("attack: %d"%yase.attack)
\ No newline at end of file
print("...................."%yase.level,yase.name,yase.hp,.yase.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