Commit 3edff188 by BellCodeEditor

save project

parent 29294bf2
Showing with 7 additions and 1 deletions
......@@ -7,7 +7,12 @@ class Hero:
yase=Hero("亚瑟",300,100)
houyi=Hero("后羿",200,150)
print(yase.name)
daef qwe():
def qwe(self):
self.leve=self.leve+1
self.hp=self.hp+50
self.attar=self.attar+4
yase=("亚瑟,300,20)
yase.updent()
print("等级是"+yase.leve)
print("血量是"+yase.hp)
print("攻击是"+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