Commit 4ad9d779 by BellCodeEditor

save project

parent a8ae526a
Showing with 6 additions and 0 deletions
...@@ -6,4 +6,9 @@ class Hoer: ...@@ -6,4 +6,9 @@ class Hoer:
self.attack=attack self.attack=attack
xialuote=Hoer("夏洛特",3425,114) xialuote=Hoer("夏洛特",3425,114)
bailishouyue=Hoer("百里守约",3120,742) bailishouyue=Hoer("百里守约",3120,742)
def upgrad():
xialuote.level=xialuote.level+1
xialuote.hp=xialuote.hp+620
xialuote.attack=xialuote.attack+30
upgrad()
print(xialuote.hp) print(xialuote.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