Commit 95c91a64 by BellCodeEditor

save project

parent 113c9ec2
Showing with 8 additions and 9 deletions
......@@ -6,12 +6,11 @@ class hero:
self.attack=attack
yase=hero("亚瑟",200,300)
houyi=hero("后羿",300,200)
print(self.level=1
self.name=name
self.hp=hp
self.attack=attack.hp)
print(houyi.hp)
def upgrade():
yase.level=level+1
yase.hp=hp+50
yase.attack=attack+4
\ No newline at end of file
yase.level=yase.level+1
yase.hp=yase.hp+50
yase.attack=yase.attack+4
upgrade()
upgrade()
print(yase.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