Commit a7603cd8 by BellCodeEditor

save project

parent acb35ec2
Showing with 19 additions and 18 deletions
......@@ -5,22 +5,23 @@ class hero:
self.attack=attack
lixin=hero(15,500,100)
print(lixin.level)
print(lixin.hp)
print(lixin.attack)
def d:
def d():
lixin.level=lixin.level+1
lixin.hp=lixin.hp+1
lixin.attack=lixin.attack+1
d
d
d
d
d
d
d
d
d
d
d
\ No newline at end of file
lixin.hp=lixin.hp+50
lixin.attack=lixin.attack+5
d()
d()
d()
d()
d()
d()
d()
d()
d()
d()
d()
d()
d()
d()
print(lixin.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