Commit 09bf78cc by BellCodeEditor

auto save

parent 1d63a9b2
Showing with 1065 additions and 19 deletions
import turtle
turtle.screensize(600,800,"yellow")
turtle.shape("arrow")
turtle.pencolor("white")
turtle.pensize(20)
turtle.speed(100)
turtle.penup()
turtle.pendown()
turtle.fillcolor("blue")
turtle.begin_fill()
turtle.circle(100,360)
turtle.end_fill()
turtle.dot(100,"blue")
turtle.setx(100)
turtle.sety(-200)
turtle.setheading(90)
print(turtle.pos())
turtle.setpos(100,200)
turtle.done()
\ No newline at end of file
import turtle
turtle.screensize(600,800,"red")
turtle.shape("arrow")
turtle.pencolor("white")
turtle.pensize(20)
turtle.speed(100)
turtle.forward(200)
turtle.right(90)
turtle.forward(200)
turtle.right(90)
turtle.forward(200)
turtle.right(90)
turtle.forward(200)
turtle.right(90)
turtle.right(-45)
turtle.forward(140)
turtle.right(90)
turtle.forward(140)
turtle.penup()
turtle.right(130)
turtle.forward(200)
turtle.right(-90)
turtle.forward(50 )
turtle.left(90)
turtle.penup()
turtle.forward(30)
turtle.done()
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__(self):
??
coco = Husky()
print(coco.skin)
\ No newline at end of file
t
\ 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