猫史档案馆


阿念OvO

阿念OvO

Lv.1

获赞:97收藏:24浏览:1446作品收藏:125
回复帖子评论
上一页1 页 / 共 1下一页

来晒晒你的精灵数叭~ 中回复

我的精灵数是2

2024-12-31T17:40:34 点赞:1

来晒晒你的精灵数叭~ 中回复

我太穷了

2024-12-31T17:43:26 点赞:0

社区星评选规则更新 中回复

太长了emotion_星能猫_哼

2024-12-31T17:50:44 点赞:0

【KittenV4.9.8版本更新】新版物理引擎正式上线!这次是真的变 开彡 了 ! 中回复

emotion_编程猫_溜了溜了emotion_编程猫_溜了溜了emotion_编程猫_溜了溜了emotion_编程猫_溜了溜了emotion_编程猫_溜了溜了emotion_编程猫_溜了溜了emotion_编程猫_溜了溜了emotion_编程猫_溜了溜了

2025-05-23T17:50:47 点赞:0

【KittenV4.9.8版本更新】新版物理引擎正式上线!这次是真的变 开彡 了 ! 中回复

123456789

2025-05-23T17:52:42 点赞:0

【KittenV4.9.8版本更新】新版物理引擎正式上线!这次是真的变 开彡 了 ! 中回复

emotion_编程猫_搓头

2025-06-06T15:59:48 点赞:0

【KittenV4.9.8版本更新】新版物理引擎正式上线!这次是真的变 开彡 了 ! 中回复

import turtle

t = turtle.Pen()
t.speed(0)

def head():
    t.penup()
    t.goto(0, (-100))
    t.pendown()
    t.begin_fill()
    t.fillcolor('gold')
    t.circle(100)
    t.end_fill()
    t.penup()

def glasses():
    #左镜框
    t.penup()
    t.goto(20,50)
    t.pencolor('brown')
    t.pensize(10)
    t.setheading(0)
    t.pendown()
    t.fillcolor('skyblue')
    t.begin_fill()
    t.forward(60)
    t.circle(8,90)
    t.forward(30)
    t.circle(8,90)
    t.forward(60)
    t.circle(8,90)
    t.forward(30)
    t.circle(8,90)
    t.end_fill()
    # 右镜框
    t.penup()
    t.goto(-20,50)
    t.setheading(180)
    t.pendown()
    t.begin_fill()
    t.forward(60)
    t.circle(-8,90)
    t.forward(30)
    t.circle(-8,90)
    t.forward(60)
    t.circle(-8,90)
    t.forward(30)
    t.circle(-8,90)
    t.end_fill()
    # 眼镜连接
    t.penup()
    t.goto(-6,70)
    t.setheading(0)
    t.pensize(20)
    t.pendown()
    t.forward(13)
    # 左镜片光泽
    t.penup()
    t.goto(50,65)
    t.setheading(45)
    t.pensize(8)
    t.pencolor('white')
    t.pendown()
    t.forward(25)
    t.penup()
    t.goto(70,65)
    t.pendown()
    t.forward(12)
    # 右镜片光泽
    t.penup()
    t.goto(-50,65)
    t.setheading(45)
    t.pensize(8)
    t.pencolor('white')
    t.pendown()
    t.forward(25)
    t.penup()
    t.goto(-30,65)
    t.pendown()
    t.forward(12)


def face():
    #右眼睛
    t.pencolor('black')
    t.pensize(5)
    t.penup()
    t.goto(55,15)
    t.pendown()
    t.setheading(110)
    t.circle(20,140)
    t.penup()
    #左眼睛
    t.goto(-55,15)
    t.pendown()
    t.setheading(70)
    t.circle(-20,140)
    t.penup()
    #嘴巴(外)
    t.goto(-15,-10)
    t.pensize(1)
    t.pencolor('coral')
    t.fillcolor('coral')
    t.setheading(-90)
    t.pendown()
    t.begin_fill()
    t.circle(15,180)
    for i in range(10):
        t.forward(3)
        t.left(7)
    t.left(20)
    t.backward(2)
    t.left(20)
    for i in range(10):
        t.forward(3)
        t.left(7)
    t.end_fill()
    #嘴巴(里)
    t.penup()
    t.goto(12,-10)
    t.setheading(120)
    t.pencolor('darkred')
    t.fillcolor('darkred')
    t.begin_fill()
    t.circle(14,120)
    t.setheading(-60)
    t.circle(14,120)
    t.end_fill()





def hands():
    #左手
    t.penup()
    t.goto(100,0)
    t.pensize(1)
    t.pencolor('black')
    t.setheading(-10)
    t.pendown()
    t.fillcolor('gold')
    t.begin_fill()
    for i in range(7):
        t.forward(9)
        t.right(6)
    for i in range(19):
        t.forward(1)
        t.right(6)
    for i in range(7):
        t.forward(9)
        t.right(5)
    t.end_fill()
    #右手
    t.penup()
    t.goto(-100,0)
    t.setheading(190)
    t.pendown()
    t.fillcolor('gold')
    t.begin_fill()
    for i in range(7):
        t.forward(9)
        t.left(6)
    for i in range(19):
        t.forward(1)
        t.left(6)
    for i in range(7):
        t.forward(9)
        t.left(5)
    t.end_fill()

def hat():
    #蓝色部分
    t.penup()
    t.goto(50,96)
    t.pencolor('deepskyblue')
    t.fillcolor('deepskyblue')
    t.pensize(1)
    t.pendown()
    t.begin_fill()
    t.setheading(90)
    t.circle(10,90)
    t.forward(10)
    t.setheading(90)
    t.forward(10)
    t.circle(5,90)
    t.forward(50)
    t.circle(5,90)
    t.forward(10)
    t.setheading(180)
    t.forward(10)
    t.circle(10,90)
    t.setheading(0)
    t.forward(100)
    t.end_fill()
    #棕色部分
    t.penup()
    t.goto(20,122)
    t.pencolor('brown')
    t.fillcolor('brown')
    t.setheading(90)
    t.pendown()
    t.begin_fill()
    t.forward(15)
    t.circle(5,90)
    t.forward(30)
    t.circle(5,90)
    t.forward(15)
    t.end_fill()

def draw():
    head()
    face()
    hat()
    glasses()
    hands()
    turtle.done()

#开始进入Python的世界
draw()

2025-06-06T16:00:42 点赞:1

【KittenV4.9.8版本更新】新版物理引擎正式上线!这次是真的变 开彡 了 ! 中回复

emotion_偷笑

2025-06-19T18:49:07 点赞:1