Commit b455b0c7 by BellCodeEditor

save project

parent c60423e6
Showing with 8 additions and 9 deletions
......@@ -5,11 +5,10 @@ class Hero:
self.hp=hp
self.ateack=ateack
yase=Hero("亚瑟"30020)
yase=Hero("后羿"25023)
print("亚瑟的血量",yase.hp)
def dsb():
yase.level=yase.level+1
yase.hp=yase.hp+40
yase.ateack=yase.ateack+20
dsb()
print(yase.hp)
\ No newline at end of file
# print("亚瑟的血量",yase.hp)
# def dsb():
# self.level=self.level+1
# self.hp=self.hp+40
# self.ateack=self.ateack+20
# dsb()
# print(yase.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