Commit 721f137c by BellCodeEditor

auto save

parent dea828ca
Showing with 7 additions and 4 deletions
...@@ -6,6 +6,9 @@ class Hero: ...@@ -6,6 +6,9 @@ class Hero:
self.attack=attack self.attack=attack
yase=Hero('yase',200,30) yase=Hero('yase',200,30)
houyi=Hero('houyi',300,20) def updata():
print(yase.hp) yase.level=yase.level+1
print(houyi.attack) yase.hp=yase.hp+50
\ No newline at end of file yase.attack=40
\ 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