Commit 7eec0bb4 by BellCodeEditor

save project

parent b4f7970f
Showing with 9 additions and 10 deletions
...@@ -4,17 +4,15 @@ class Hero: ...@@ -4,17 +4,15 @@ class Hero:
self.name = name self.name = name
self.hp = hp self.hp = hp
self.attack = attack self.attack = attack
def upgraade(self):
self.level = self.level + 999999999999999999999999999999
self.hp = self.hp + 99999999999999999999999999
self.attack = self.attack +9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
him = Hero(999999999999999999999999999,"him",9999999999999999999999999999999999999999999999999999999999999999,999999999999999999999999999999999999999999999999999999999999999) him = Hero(999999999999999999999999999,"him",9999999999999999999999999999999999999999999999999999999999999999,999999999999999999999999999999999999999999999999999999999999999)
dream = Hero(9999999999999999999999999999999999999,"dream",5,999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999) dream = Hero(9999999999999999999999999999999999999,"dream",5,999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)
def dpgraade(): print("吾王him",him.hp)
him.level = him.level + 999999999999999999999999999999 print("残血dream的攻击:",dream.attack)
him.hp = him.hp + 99999999999999999999999999 him.upgraade()
him.attack = him.attack +9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 dream.upgraade()
print("吾王him",him.hp) print("吾王him",him.hp)
print("残血dream的攻击:",dream.attack) print("残血dream的攻击:",dream.attack)
\ 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