Commit 06123e5f by BellCodeEditor

save project

parent 6fcfcb42
Showing with 45 additions and 16 deletions
class Cat:
def __init__(self):
self.footNum = 4
self.eyeNum = 2
self.head = 1
self.earsNum = 2
self.skin = "white"
def run(self):
print("用谷歌翻译")
class Husky(Dog)
def __init__(self):
super().__init__()
self.skin="black"
coco=Husky()
print(coco.skin)
\ No newline at end of file
class player(hero)
def_init_(self,hero_type,name):
super()._init_(name)
self.hp =200
self.attack = 50
self.max_hp = self.hp
print("角色"+ self.name + "创建成功," )
print(ldjvRSHAVOIHSVDHSDAO[HDOHSADII])
houi =player("射手","后羿")
yase = hero("亚瑟")
houyi.combat(yase)
yase.combat(houyi)
houyi.cure()
yase.cure
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