Commit 721f137c by BellCodeEditor

auto save

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