Commit 97f8c35f by BellCodeEditor

save project

parent eefb8614
Showing with 6 additions and 3 deletions
...@@ -92,10 +92,12 @@ again() ...@@ -92,10 +92,12 @@ again()
class hero: class hero:
def_init_(self): def_init_(self,name,hp,attack):
self.level=1 self.level=1
self.hp=300 self.name=name
self.attack=20 self.hp=hp
self.attack=attack
yase=hero() yase=hero()
houyi=hero()
print() print()
print() print()
\ 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