Commit d10360e3 by BellCodeEditor

save project

parent 829a15b3
Showing with 25 additions and 2 deletions
...@@ -6,5 +6,29 @@ class Hero: ...@@ -6,5 +6,29 @@ class Hero:
self.attack=attack self.attack=attack
yase=Hero("亚瑟",1999,999) yase=Hero("亚瑟",1999,999)
hp=Hero("后翼",1888,1000) hp=Hero("后翼",1888,1000)
def up():
yase.level=yase.level+1
yase.hp=yase.hp+900
yase .attack=yase.attack+990
up()
print(yase.hp) print(yase.hp)
print(yase.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