Commit f2f337c2 by BellCodeEditor

auto save

parent d72d49ed
Showing with 7 additions and 0 deletions
......@@ -5,3 +5,10 @@ class Hero:
self.attack=attack
dek=Hero(1,300,25)
print(dek.hp)
class Hero:
def __init__(self,level,hp,attack):
self.level=level
self.hp=hp
self.attack=attack
dek=Hero(1,300,25)
print(dek.hp)
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