Commit 1ca06fb6 by BellCodeEditor

save project

parent 70850cf8
Showing with 11 additions and 0 deletions
class hero:
def __init__(seif,name,血量,攻击力):
seif.name=name
seif.血量=血量
seif.攻击力=攻击力
seif.等级=1
qp=hero('wukong',250,100)
wo=hero('change',200,85)
print('wukong血量为:',qp.血量)
print('change血量为:',wo.血量)
\ 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