Commit 8e8a368c by BellCodeEditor

auto save

parent cfc86f73
Showing with 6 additions and 0 deletions
...@@ -4,3 +4,9 @@ class Hero: ...@@ -4,3 +4,9 @@ class Hero:
self.name=name self.name=name
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
yase=Hero('yase',300,20)
w=Hero('w',5,10000)
nima=Hero('nima',12000,1)
print(yase.attack)
print(w.attack)
print(nima.attack)
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