Commit 61122b4f by BellCodeEditor

save project

parent d4e182ae
Showing with 38 additions and 2 deletions
class Dog:
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__()
super().__init__()
self.skin = "black"
coco = Husky()
print(coco.skin)
\ No newline at end of file
class Hero:
def __init__(self,name):
self.level = 1
self.hp = 250
self.attck = 40
self.namer = name
def combat(self,enemy):
enemy.hp -= self.attck
infor1 = self.name+"dui"+enemy.name+"faqigoonegji"
infor2 = "zaocheng"+str(self.attck)+"EBHGFTGH"
{"admin": "admin", "python": "123456"}
\ No newline at end of file \ 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