Commit 6eeb8b5c by BellCodeEditor

save project

parent d6c81a0f
Showing with 10 additions and 0 deletions
class hero:
def __init__(self,lever,hp,):
self.lever=lever
self.hp=hp
yase=hero("亚瑟",1,300)
houyi=hero("后羿",1,240)
print("亚瑟的血量为",yase.hp)
print("后羿的血量为",houyi.hp)
def shenji:
yase.lever=yase.lever+1
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