Commit c04fbc85 by BellCodeEditor

auto save

parent 02cf5782
Showing with 8 additions and 7 deletions
......@@ -6,10 +6,5 @@ class Hero:
self.attack=attack
yase=Hero('yase',300,20)
hy=Hero('hy',250,25)
for yase
print(yase.attack)
print(hy.attack)
\ No newline at end of file
class Hero:
def __init__(self,name,hp,attack):
self.level=1
self.name = name
\ 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