Commit ca46f726 by BellCodeEditor

save project

parent 59f8f33b
Showing with 11 additions and 0 deletions
class Hese:
def __init__(s,name,HP,attack):
s.level=1
s.name=name
s.HP=HP
s.attack=attack
yase=Hese('亚瑟',300,20)
houyi=Hese('后羿',240,23)
print('亚瑟HP:',yase.HP)
print('后羿HP:',houyi.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