Commit 4e727ed8 by BellCodeEditor

save project

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