Commit ccef28a1 by BellCodeEditor

save project

parent 32b24132
Showing with 5 additions and 6 deletions
......@@ -4,15 +4,14 @@ class Hero:
self.name = name
self.hp= hp
self.attack= attack
def qwer(self):
self.level= self.level+1
self.hp= self.hp+9
self.attack= self.attack+99
yase = Hero("亚瑟",300,20)
houyi = Hero("后裔",240,23)
def qwer():
yase.level= yase.level+1
yase.hp= yase.hp+999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
yase.attack=yase.attack+99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
qwer()
print(yase.hp)
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