猫史档案馆


萌新一个

萌新一个

Lv.1

退了但没有完全退...

获赞:2773收藏:832浏览:49301作品收藏:484
回复帖子评论
上一页6 页 / 共 9下一页

【岛3十一大更新!】七项全能争霸赛!新增超大地图! 中回复

吉吉喵终于不是打杂卖萌了,O(∩_∩)O哈哈~

2020-10-08T18:12:30 点赞:0

【社区星推荐】第33期·五一编程 中回复

前排!!!!

2020-10-08T18:19:54 点赞:0

投诉戳气球奇遇事件 中回复

!!!!!点赞!!!!

 

赞同

 

 

 

 

 

 

 

 

 

 

 

 

 

 

+1!!!!!!!

2020-10-09T13:25:38 点赞:0

狂妄之蔡之你的篮球的发布 中回复

!!!!好!加油!!!

2020-10-18T16:30:03 点赞:1

给我个解释 中回复

阿巴阿巴

2020-10-19T20:50:45 点赞:1

给我个解释 中回复

@官方

2020-10-28T22:40:35 点赞:1

给我个解释 中回复

叶(^-^)V,终于换了标签了!!!

2020-10-28T22:42:41 点赞:1

【社区星推荐】第36期·提米&Happy-babies 中回复

提米?(Timi??!天美工作室???)

2020-11-06T21:45:20 点赞:1

室长你看这个可以吗? 中回复

可以!!!

2020-11-06T21:47:42 点赞:2

我要给我自己取一个小名 中回复

我...算了,感觉还是这样就挺好了

2020-11-07T10:19:20 点赞:1

请求加入工作室 中回复

我们(一级的,为了加人,现在无门槛)

2020-11-07T10:28:25 点赞:0

今天是LP的生日 中回复

要来我们工作室吗?小号也要

2020-11-07T10:30:43 点赞:0

【宇轩工作室】我宣布我正式回归宇轩工作室! 中回复

这啥???室长还能转让???(行吧,我感觉我来的这4年白来了,特别是前3年)

2020-11-07T10:33:31 点赞:0

怎么帖子只剩这么一点了? 中回复

我指我工作室下的帖子

2020-11-07T10:48:16 点赞:0

怎么帖子只剩这么一点了? 中回复

别误会

2020-11-07T10:48:21 点赞:0

如果你能和一个官方决斗,你选谁(不出名的不算) 中回复

F(随便打的,不知道是谁)

2020-11-29T12:17:15 点赞:0

【工作室狂欢月】2020最后一个月了,我们搞点大事情吧! 中回复

猴急万岁~~~~!!!

2020-12-04T20:20:03 点赞:0

【工作室狂欢月】2020最后一个月了,我们搞点大事情吧! 中回复

哇!!!!!

2020-12-06T17:08:07 点赞:0

我来啦!!! 中回复

我也给你点个关注吧!

2020-12-06T17:56:53 点赞:0

官方属于点猫科技的吗? 中回复

那当然了

2020-12-13T16:09:30 点赞:0

招人了!!!完全无门槛!!! 中回复

顶顶

如果这些还不够吸引人,请看我的个人页面

2020-12-13T21:02:50 点赞:1

”没人要的小人(没人要的小猫)“找工作室 中回复

我们,限时无门槛

2021-01-09T16:59:35 点赞:1

【Python作品分享】大黄鸡课后作业【作品秀】 中回复

这是海龟?厉害啊,这写了多久了啊

2021-01-09T17:00:27 点赞:1

【Python作品分享】大黄鸡课后作业【作品秀】 中回复

不过你这个有点bug:我给你修复了。

# 召唤大黄鸡
'''
滚动鼠标滑轮,让程序页面滑动到最后
通过指令更新大黄鸡的形象
'''
import turtle

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

def head(color=None):
    is_wounded = False
    if not color:
        color = "yellow"
        is_wounded = True

    t.penup()
    t.goto(0, -100)
    t.pendown()
    t.begin_fill()
    t.color(color)
    t.circle(100)
    t.end_fill()

    if is_wounded:
        # 伤痕
        t.penup()
        t.goto(-60, -50)
        t.setheading(45)
        t.pensize(8)
        t.pencolor("gray")
        t.pendown()
        t.forward(20)
        t.penup()
        t.goto(-40, -50)
        t.pendown()
        t.forward(16)

def face(eye=("up", "black"), nose="darkred", mouth="coral"):
    # 设置画眼睛
    t.pencolor(eye[1])
    t.pensize(5)

    def draw_eye(eye):
        if eye[0] == "down":
            # 左眼睛
            t.penup()
            t.goto(-55, 25)
            t.pendown()
            t.setheading(-70)
            t.circle(20, 140)
            # 右眼睛
            t.penup()
            t.goto(55, 25)
            t.pendown()
            t.setheading(-110)
            t.circle(-20, 140)
        elif eye[0] == "open":
            # 左眼睛
            t.penup()
            t.goto(-55, 25)
            t.pendown()
            t.setheading(-70)
            t.dot(16)
            # 右眼睛
            t.penup()
            t.goto(55, 25)
            t.pendown()
            t.setheading(-110)
            t.dot(16)
        else:
            # 左眼睛
            t.penup()
            t.goto(-55, 15)
            t.pendown()
            t.setheading(70)
            t.circle(-20, 140)
            # 右眼睛
            t.penup()
            t.goto(55, 15)
            t.pendown()
            t.setheading(110)
            t.circle(20, 140)

    def draw_nose(nose):
        t.penup()
        t.goto(-15, -10)
        t.pensize(1)
        t.color(nose)
        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()

    def draw_mouth(mouth):
        # 嘴巴(外)
        t.penup()
        t.goto(12, -10)
        t.setheading(120)
        t.color(mouth)
        t.begin_fill()
        t.circle(14, 120)
        t.setheading(-60)
        t.circle(14, 120)
        t.end_fill()

    draw_eye(eye)
    draw_nose(nose)
    draw_mouth(mouth)

def hands(color="black"):
    # 左手
    t.pensize(1)
    t.penup()
    t.goto(-100, 0)
    t.setheading(190)
    t.pendown()
    t.color(color)
    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()
    # 右手
    t.penup()
    t.goto(100, 0)
    t.setheading(-10)
    t.pendown()
    t.fillcolor(color)
    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()

# 引擎
def engines(size=13):
    def engine(x, y):
        t.pensize(1)
        t.setheading(0)
        # 外圆位置
        t.penup()
        t.goto(x, y)
        t.pendown()
        # 画外圆
        t.color("brown", "yellow")
        t.begin_fill()
        t.circle(-size)
        t.end_fill()
        # 内圆位置
        t.penup()
        t.goto(x, y - 4)
        t.pendown()
        # 画内圆
        t.setheading(0)
        t.color("black", "blue")
        t.begin_fill()
        t.circle(-size + 4)
        t.end_fill()

    # 左引擎
    engine(-100, -40)
    engine(-120, -40)
    # 右引擎
    engine(100, -40)
    engine(120, -40)

def seat(chair_color="brown"):
    # 护栏
    t.penup()
    t.goto(50, 96)
    t.color("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.color(chair_color)
    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 glasses(color="purple"):
    # 左镜框
    t.penup()
    t.goto(20, 50)
    t.pencolor("brown")
    t.pensize(10)
    t.setheading(0)
    t.pendown()
    t.fillcolor(color)
    t.begin_fill()
    for i in range(2):
        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()
    for i in range(2):
        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)

# 开始绘制大黄鸡
head("yellow")     # 绘制头部,可以改变颜色
hands('dark yellow')          # 绘制手,可以改变颜色
seat('brown')           # 绘制座椅,可以改变颜色
glasses("black")    # 绘制护目镜,可以改变颜色
engines(15)      # 绘制引擎,可以改变大小
face(eye=("up", "black"), nose="darkred", mouth="coral")     # 绘制脸部


turtle.done()

2021-01-09T17:04:32 点赞:0

你们最近都在做什么作品哇? 中回复

我没灵感啊啊啊

2021-01-09T17:07:30 点赞:0

【JavaScript教程】用对象和属性表示物体数据 中回复

好难啊!还是Python简单

2021-01-15T13:42:01 点赞:0

【大新闻】悬赏岛3头号创作者! 中回复

今天就是1月26,要去干什?

2021-01-26T10:36:11 点赞:0

【求点赞】各位点个赞吧=_= 中回复

沙发

2021-01-26T10:37:26 点赞:0

【每日一个岛3建图小技巧】传送门教程&代码大公开,速来! 中回复

竟然不能传送到岛三以外的网站

2021-01-27T11:29:46 点赞:0

来分享一下期末考试成绩啊~ 中回复

啊行吧这作者是个学霸啊

2021-01-28T09:03:23 点赞:0