Commit 9a7bbca4 by BellCodeEditor

save project

parent 2017abff
Showing with 9 additions and 16 deletions
class Dog: import turtle
def __init__(self): pen=turtle.Pen()
self.footNum = 4 a=1
self.eyeNum = 2 for i in range(300):
self.head = 1 pen.forward(a)
self.earsNum = 2 pen.right(91)
self.skin = "white" a=a+1
def run(self): turtle.done()
print("狗狗飞快的跑起来") \ No newline at end of file
class Husky(Dog):
def __init__(self):
coco = Husky()
print(coco.skin)
\ 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