Commit 0e09622a by BellCodeEditor

save project

parent 8d9648d9
Showing with 6 additions and 0 deletions
......@@ -8,3 +8,8 @@ ys =Hero("亚瑟",120,20)
hy=Hero("后裔",100,23)
print(ys.hp)
print(hy.hp)
def up():
ys.level=ys.lesel+1
ys.hp=ya.hp+50
print(ys.hp)
up
\ 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