Commit 95a03152 by BellCodeEditor

save project

parent 502a2ebf
Showing with 15 additions and 6 deletions
...@@ -5,8 +5,17 @@ class Hero: ...@@ -5,8 +5,17 @@ class Hero:
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
yase=Hero('yase',2,1) yase=Hero('yase',2,1)
hy=Hero('hy',300,2) def pppp():
k=Hero('k',122,122) yase.level=yase.level+0.5
print(yase.attack) yase.hp=yase.hp+0.01
print(hy.attack) yase.attack=yase.attack+0.00000000000000000000001
print(k.attack) pppp()
\ No newline at end of file pppp()
pppp()
pppp()
pppp()
pppp()
pppp()
print(yase.level)
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