Commit c60423e6 by BellCodeEditor

save project

parent 23640058
Showing with 8 additions and 2 deletions
......@@ -6,4 +6,10 @@ class Hero:
self.ateack=ateack
yase=Hero("亚瑟"30020)
yase=Hero("后羿"25023)
print("亚瑟的血量",yase.hp)
\ No newline at end of file
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
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