Commit c60423e6 by BellCodeEditor

save project

parent 23640058
Showing with 7 additions and 0 deletions
......@@ -7,3 +7,9 @@ class Hero:
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
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