Commit 25ca7d8c by BellCodeEditor

save project

parent ef486254
Showing with 7 additions and 3 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
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