Commit 5ab5fdde by BellCodeEditor

save project

parent c52d5242
Showing with 9 additions and 2 deletions
......@@ -4,7 +4,14 @@ class Heor:
self.hp=hp
self.attack=attack
self.name=name
def upgrade():
yase.level=yase.level+1
yase.hp=yase.hp+1
yase.attack=yase.attack+1
yase=Heor("亚瑟",300,20)
houyi=Heor("后羿",250,23)
print("亚瑟的血量",yase.hp)
print("后羿的血量",houyi.hp)
\ No newline at end of file
print("后羿的血量",houyi.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