Commit 4e727ed8 by BellCodeEditor

save project

parent a6c8501e
Showing with 10 additions and 8 deletions
...@@ -5,10 +5,12 @@ class Hero: ...@@ -5,10 +5,12 @@ class Hero:
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
yase=Hero('yase',300,20) yase=Hero('yase',300,20)
hy=Hero('hy',250,23) def tre():
k=Hero('K',5600,199) yase.level=yase.level+1
ht=Hero('ht',2647686,346778780) yase.hp=yase.hp+50
print(yase.attack) yase.attack=yase.attack+40
print(hy.attack) tre()
print(k.attack) tre()
print(ht.attack) print(yase.level)
\ No newline at end of file print(yase.hp)
print(yase.attack)
\ 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