Commit 3f5289d0 by BellCodeEditor

save project

parent ab513f20
Showing with 14 additions and 0 deletions
...@@ -3,4 +3,18 @@ class Hero: ...@@ -3,4 +3,18 @@ class Hero:
self.level=1 self.level=1
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
wudi=Hero("无敌",99999999999999999999999,9999999999999999999999999999999999999999999)
yase=Hero("亚瑟",300,20) yase=Hero("亚瑟",300,20)
print("亚瑟的血量为",yase.attack)
def upgrad_yase():
yase.level=self.level*2
yase.hp=self.hp*2
yase.attack=self.attack*2
def upgrad_wudi():
wudi.level=self.level*2
wudi.hp=self.hp*2
wudi.attack=self.attack*2
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