Commit ca9bce02 by BellCodeEditor

save project

parent 1b250ee8
Showing with 6 additions and 0 deletions
...@@ -3,7 +3,12 @@ class hero: ...@@ -3,7 +3,12 @@ class hero:
self.attack=attack self.attack=attack
self.hp=hp self.hp=hp
self.level=level self.level=level
self.name=name
Arthur=hero("Arthur",300,20,1) Arthur=hero("Arthur",300,20,1)
Yi=hero("Yi",250,23,1)
print(Arthur.hp) print(Arthur.hp)
print(Arthur.attack) print(Arthur.attack)
print(Arthur.level) print(Arthur.level)
print(Yi.hp)
print(Yi.attack)
print(Yi.level)
\ 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