Commit 813dfb61 by BellCodeEditor

auto save

parent 762bd29f
Showing with 9 additions and 4 deletions
class yingxiong:
def __init__(self):
def __init__(self,name,hp,kun):
self.exp=1
self.hp=200
self.kun=30
yase=yingxiong()
self.name=name
self.hp=hp
self.kun=kun
yase=yingxiong('亚瑟',200,30)
houyi=yingxiong('后羿',160,35)
print('亚瑟血量=',yase.hp)
print('后羿血量=',houyi.hp)
print('亚瑟攻击=',yase.kun)
print('后羿攻击=',houyi.kun)
\ 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