Commit 72b5c8be by BellCodeEditor

save project

parent ee656d6b
Showing with 7 additions and 6 deletions
...@@ -7,8 +7,9 @@ class Heor: ...@@ -7,8 +7,9 @@ class Heor:
yase=Heor('亚瑟',300,20) yase=Heor('亚瑟',300,20)
houyi=Heor('后羿',240,23) houyi=Heor('后羿',240,23)
def deji(): def deji():
self.level=1+1 yase.level=yase.level+1
self.hp=hp*25% yase.hp=yase.hp*1.25
self.attack=attack*5% yase.attack=yase.attack*1.05
# print('亚瑟血量为'+str(yase.hp)) deji()
# print('后羿血量为'+str(houyi.hp)) print('亚瑟血量为'+str(yase.hp))
\ No newline at end of file print('后羿血量为'+str(houyi.hp))
\ 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