Commit 82a97603 by BellCodeEditor

save project

parent 310a7efa
Showing with 6 additions and 2 deletions
...@@ -6,5 +6,10 @@ class Hero: ...@@ -6,5 +6,10 @@ class Hero:
self.attact=attact self.attact=attact
yase=Hero('亚瑟',300,20) yase=Hero('亚瑟',300,20)
houyi=Hero('后羿',240,25) houyi=Hero('后羿',240,25)
def Upgrade():
yase.level=yase.level+1
yase.ph=yase.ph+50
yase.attact=yase.attact+4
Upgrade()
print(yase.ph) print(yase.ph)
print(houyi.ph)
\ 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