Commit adade44c by BellCodeEditor

save project

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