Commit 25ca7d8c by BellCodeEditor

save project

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