Commit adade44c by BellCodeEditor

save project

parent cc36c967
Showing with 10 additions and 11 deletions
...@@ -4,13 +4,12 @@ class hera: ...@@ -4,13 +4,12 @@ class hera:
self.name=name self.name=name
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
def qwe(self):
yase=hera("亚瑟",300,100) self.level=self.level+1
print(yase.attack) self.hp=self.hp+50
def asd(): self.attack=self.attack+4
yase=yase.level+1 yase=("亚瑟",300,20)
yase.hp=yase.hp+50 yase.qwe()
yase.attar=yase.attra+4 print("等级是"+str(yase.level)
qwe() print("血量是"+str(yase.hp)
qwe() peint("工具是"+str(yase.attar)
print(yase.hp) \ No newline at end of file
\ 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