Commit f6489433 by BellCodeEditor

save project

parent 304eb776
Showing with 4 additions and 0 deletions
...@@ -6,6 +6,10 @@ class Hero: ...@@ -6,6 +6,10 @@ class Hero:
self.name=name self.name=name
yase=Hero("亚瑟",30000000,1) yase=Hero("亚瑟",30000000,1)
houyi=Hero("后羿",10,1000000) houyi=Hero("后羿",10,1000000)
def up():
yase.level=yase.level+1
yase.hp=yase.hp+90
yase.attack=yase.attack+10
print(yase.attack) print(yase.attack)
print(houyi.name) print(houyi.name)
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