Commit 8e273606 by BellCodeEditor

save project

parent 70850cf8
Showing with 11 additions and 0 deletions
class hero:
def __init__(a1,n,h,a):
l=1
a1.n=n
a1.h=h
a1.a=a
yase=hero("亚瑟",300,20)
houyi=hero("后羿",250,230)
print("亚瑟的血量",yase.h)
print('后羿的血量',houyi.h)
\ 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