猫史档案馆


【Python作品分享】马里奥-python-Jolin【作品秀】

用户:JolinktkcJolinktkc查看:0 回复:0 评论:0 创建时间:2021-09-08T10:08:11


【作品展示】

center_image

 

【作品介绍】

啦啦啦

 

【作品源代码】

from turtle import*
import random
ran = random.randint(0, 5)
speed(0)
hideturtle()
penup()
#defind tuple
colortuple = ('1', '2', '3', '4', '5', '6', '7', '8',
              '9', '0', 'A', 'B', 'C', 'D', 'E', 'F')
#custom character
print('请输入你要的项目{0:Dream,1:玛丽,2:巴基斯坦国旗,3:中国国旗,4:计算器,5:太阳系,6:测年龄,7:熊猫,8:小狗,9:树,10:小黄人,11:汤圆酱表情包,12:滑稽表情,13:魔法少女,random or r:随机选}')
character = input()
if character == 'random' or character == 'r':
    character = ran
else:
    character = int(character)
#Dream
if character == 0:
    #defind function
    def pixel(startx, endx, y, color):
        goto(-140+startx*20, 300-y*20)
        fillcolor(color)
        begin_fill()
        for i in range(2):
            forward((endx-startx+1)*20)
            right(90)
            forward(20)
            right(90)
        end_fill()
    print('请输入Dream的颜色ID(要原色填"classic"or"c",随机色填"random"or"r")')
    green = input()
    if green == 'classic' or green == 'c':
        green = '#5EFA0F'
    elif green == 'random' or green == 'r':
        green = '#'+random.choice(colortuple)+random.choice(colortuple)+random.choice(
            colortuple)+random.choice(colortuple)+random.choice(colortuple)+random.choice(colortuple)
    white = '#FFFFFF'
    black = '#000000'
    #draw Dream's head
    for i in range(0, 7):
        pixel(3, 10, i, green)
    #draw Dream's Body
    pixel(3, 10, 7, black)
    pixel(0, 2, 8, green)
    pixel(3, 3, 8, black)
    pixel(4, 9, 8, white)
    pixel(10, 11, 8, black)
    pixel(12, 13, 8, green)
    pixel(0, 0, 9, green)
    pixel(1, 2, 9, black)
    pixel(3, 11, 9, white)
    pixel(12, 12, 9, black)
    pixel(13, 13, 9, green)
    pixel(0, 0, 10, black)
    pixel(1, 11, 10, white)
    pixel(12, 12, 10, black)
    pixel(13, 13, 10, green)
    pixel(0, 0, 11, black)
    pixel(1, 12, 11, white)
    pixel(13, 13, 11, black)
    pixel(0, 0, 12, black)
    pixel(1, 1, 12, white)
    pixel(2, 2, 12, black)
    pixel(3, 10, 12, white)
    pixel(11, 11, 12, black)
    pixel(12, 12, 12, white)
    pixel(13, 13, 12, black)
    for i in range(13, 15):
        pixel(0, 0, i, black)
        pixel(1, 12, i, white)
        pixel(13, 13, i, black)
    pixel(0, 0, 15, black)
    pixel(1, 2, 15, white)
    pixel(3, 3, 15, black)
    pixel(13, 13, 15, black)
    pixel(11, 12, 15, white)
    pixel(10, 10, 15, black)
    pixel(4, 9, 15, white)
    pixel(0, 0, 16, black)
    pixel(1, 2, 16, white)
    pixel(13, 13, 16, black)
    pixel(11, 12, 16, white)
    pixel(3, 10, 16, black)
    pixel(0, 1, 17, black)
    pixel(2, 12, 17, white)
    pixel(13, 13, 17, black)
    pixel(0, 1, 18, black)
    pixel(2, 11, 18, white)
    pixel(12, 12, 18, black)
    pixel(13, 13, 18, green)
    pixel(0, 0, 19, green)
    pixel(1, 2, 19, black)
    pixel(3, 9, 19, white)
    pixel(10, 11, 19, black)
    pixel(12, 13, 19, green)
    pixel(3, 10, 20, black)
    #draw Dream's feet
    for i in range(21, 30):
        pixel(3, 3, i, black)
        pixel(4, 9, i, white)
        pixel(10, 10, i, black)

    #question1
    e = 0
    print('Dream的真名叫什么?')
    d = input()
    if d == 'Clay':
        print('对了')
        e += 1
    else:
        print('错,他真名叫Clay')
    #question2
    print('Dream的生日在什么时候?(格式:月.日)')
    d = input()
    if d == '8.22' or d == '08.22':
        print('对了')
        e += 1
    else:
        print('错,他的生日在8月22日')
    #question3
    print('Dream是玩什么的')
    d = input()
    if d == '我的世界' or d == 'Minecraft' or d == 'MC':
        print('对了')
        e += 1
    else:
        print('错,他玩我的世界')
    #question4
    print('Dream是哪国人?')
    d = input()
    if d == '喵':
        print('对了')
        e += 1
    else:
        print('错,他是喵人')
    #question5
    print('Dream有约多少粉丝?')
    d = input()
    if d == '2kw' or d == '20000000' or d == '2000w' or d == '2000万' or d == '2千万':
        print('对了')
        e += 1
    else:
        print('错,他有2000万粉丝')
    #add up to
    if e > 4:
        print("你很了解Dream嘛!")
    elif 5 > e > 2:
        print("你已经看了很多Dream的视频了嘛!")
    elif e == 2:
        print("你就是一个一般的Dream粉丝!")
    else:
        print("你压根就没看过Dream的视频!")
    print('正确率:', (1/5*e*100), '%')
#Mario
if character == 1:
    #defind function
    def pixel(startx, endx, y, color):
        goto(-120+startx*20, 160-y*20)
        fillcolor(color)
        begin_fill()
        for i in range(2):
            forward(20*(endx-startx+1))
            right(90)
            forward(20)
            right(90)
        end_fill()
    print('请输入马里奥的帽子&衣服颜色ID(要原色填"classic"or"c",随机色填"random"or"r")')
    red = input()
    if red == 'classic' or red == 'c':
        red = '#E05000'
    elif red == 'random' or red == 'r':
        red = '#'+random.choice(colortuple)+random.choice(colortuple)+random.choice(
            colortuple)+random.choice(colortuple)+random.choice(colortuple)+random.choice(colortuple)

    print('请输入马里奥的头发&眼睛&胡须&袖子&鞋子颜色ID(要原色填"classic"or"c",随机色填"random"or"r")')
    green = input()
    if green == 'classic' or green == 'c':
        green = '#888800'
    elif green == 'random' or green == 'r':
        green = '#'+random.choice(colortuple)+random.choice(colortuple)+random.choice(
            colortuple)+random.choice(colortuple)+random.choice(colortuple)+random.choice(colortuple)

    print('请输入马里奥的皮肤&纽扣颜色ID(要原色填"classic"or"c",随机色填"random"or"r")')
    yellow = input()
    if yellow == 'classic' or yellow == 'c':
        yellow = '#FFA000'
    elif yellow == 'random' or yellow == 'r':
        yellow = '#'+random.choice(colortuple)+random.choice(colortuple)+random.choice(
            colortuple)+random.choice(colortuple)+random.choice(colortuple)+random.choice(colortuple)
    #draw Mario's head
    #draw lineno1
    pixel(3, 7, 0, red)
    #draw lineno2
    pixel(2, 10, 1, red)
    #draw lineno3
    pixel(2, 4, 2, green)
    pixel(5, 6, 2, yellow)
    pixel(7, 7, 2, green)
    pixel(8, 8, 2, yellow)
    #draw lineno4
    pixel(1, 1, 3, green)
    pixel(2, 2, 3, yellow)
    pixel(3, 3, 3, green)
    pixel(4, 6, 3, yellow)
    pixel(7, 7, 3, green)
    pixel(8, 10, 3, yellow)
    #draw lineno5
    pixel(1, 1, 4, green)
    pixel(2, 2, 4, yellow)
    pixel(3, 4, 4, green)
    pixel(5, 7, 4, yellow)
    pixel(8, 8, 4, green)
    pixel(9, 11, 4, yellow)
    #draw lineno6
    pixel(1, 2, 5, green)
    pixel(3, 6, 5, yellow)
    pixel(7, 10, 5, green)
    #draw lineno7
    pixel(3, 9, 6, yellow)
    #draw Mario's body
    #draw lineno8
    pixel(2, 3, 7, green)
    pixel(4, 4, 7, red)
    pixel(5, 7, 7, green)
    #draw lineno9
    pixel(1, 3, 8, green)
    pixel(4, 4, 8, red)
    pixel(5, 6, 8, green)
    pixel(7, 7, 8, red)
    pixel(8, 10, 8, green)
    #draw lineno10
    pixel(0, 3, 9, green)
    pixel(4, 7, 9, red)
    pixel(8, 11, 9, green)
    #draw lineno11
    pixel(0, 1, 10, yellow)
    pixel(2, 2, 10, green)
    pixel(3, 3, 10, red)
    pixel(4, 4, 10, yellow)
    pixel(5, 6, 10, red)
    pixel(7, 7, 10, yellow)
    pixel(8, 8, 10, red)
    pixel(9, 9, 10, green)
    pixel(10, 11, 10, yellow)
    #draw lineno12
    pixel(0, 2, 11, yellow)
    pixel(3, 8, 11, red)
    pixel(9, 11, 11, yellow)
    #draw lineno13
    pixel(0, 1, 12, yellow)
    pixel(2, 9, 12, red)
    pixel(10, 11, 12, yellow)
    #draw lineno14
    pixel(2, 4, 13, red)
    pixel(7, 9, 13, red)
    #draw Mario's feet
    #draw lineno15
    pixel(1, 3, 14, green)
    pixel(8, 10, 14, green)
    #draw lineno16
    pixel(0, 3, 15, green)
    pixel(8, 11, 15, green)
    #question1
    e = 0
    print('马里奥的兄弟是谁?')
    d = input()
    if d == '路易基' or d == '路易吉':
        print('对了')
        e += 1
    else:
        print('错,他兄弟叫路易基')
    #question2
    print('超级玛丽1FC有多少关卡?')
    d = input()
    if d == '32':
        print('对了')
        e += 1
    else:
        print('错,超级玛丽有三十二关')
    #question3
    print('超级玛丽的BOSS是谁?')
    d = input()
    if d == '库巴':
        print('对了')
        e += 1
    else:
        print('错,BOSS是库巴')
    #question4
    print('超级玛丽库巴关的蘑菇仔是谁?')
    d = input()
    if d == '奇诺比奥':
        print('对了')
        e += 1
    else:
        print('错,他叫奇诺比奥')
    #question5
    print('马里奥的英文名是什么?(首字母别忘记大写)')
    d = input()
    if d == 'Mario':
        print('对了')
        e += 1
    else:
        print('错,他的英文名叫Mario')
    #add up to
    if e > 4:
        print("你很了解超级玛丽嘛!")
    elif 5 > e > 2:
        print("你已经玩了很多次马里奥了嘛!")
    elif e == 2:
        print("你就是一个一般的超级玛丽玩家!")
    else:
        print("你压根就没玩多少超级玛丽!")
    print('正确率:', (1/5*e*100), '%')
#ChinaFlag
elif character == 3:
    def star(length):
        begin_fill()
        for i in range(5):
            fd(length)
            rt(144)
        end_fill()
    pu()
    colormode(255)
    goto(-300, 198)
    pd()
    fillcolor(255, 0, 0)
    begin_fill()
    for i in range(2):
        fd(600)
        rt(90)
        fd(396)
        rt(90)
    end_fill()
    pu()
    fd(50)
    rt(90)
    fd(125)
    seth(0)
    fillcolor(255, 255, 0)
    star(100)
    rt(18)
    fd(52.5)
    seth(0)
    lt(45)
    for i in range(4):
        fd(100)
        star(50)
        fd(-100)
        rt(90/4)
#PakistanFlag
elif character == 2:
    pu()
    speed(0)
    colormode(255)
    goto(-300, 198)
    pd()
    fillcolor(255, 255, 255)
    begin_fill()
    for i in range(2):
        fd(600)
        rt(90)
        fd(396)
        rt(90)
    end_fill()
    pu()
    fd(150)
    rt(90)
    fillcolor(4, 喵, 30)
    begin_fill()
    fd(396)
    pd()
    lt(90)
    fd(450)
    lt(90)
    fd(396)
    lt(90)
    fd(450)
    end_fill()
    pu()
    lt(90)
    fd(198)
    lt(90)
    fd(99)
    rt(90)
    begin_fill()
    fillcolor(255, 255, 255)
    circle(99)
    end_fill()
    circle(99, 180+45)
    lt(90)
    fd(145)
    lt(90)
    begin_fill()
    fillcolor(4, 喵, 30)
    circle(85)
    end_fill()
    goto(-300, 198)
    seth(0)
    fd(249)
    rt(90)
    fd(198)
    circle(99, 180+45)
    rt(180)
    backward(37.5)
    begin_fill()
    fillcolor(255, 255, 255)
    for i in range(5):
        fd(75)
        rt(144)
    hideturtle()
    end_fill()
#Calculator
elif character == 4:
    import math
    print("这是一个计算器,可支持小数,整数")
    print("运算符号:+加、-减、*乘、/除、()求最大公因数、[]求最小公倍数、sqrt平方根、sin、cos(cosin)、tan、log、^求第一个数的第二个数次方")
    print("前提条件:求最大公因数(最小公倍数)一定要整数")
    while True:
        print("第一个数:")
        a = input()
        if a == "pi":
            print(3.141592653589793)
            continue
        else:
            b = float(a)
            a = b
        print("运算符:")
        b = input()
        if b == "sqrt":
            print(math.sqrt(a))
            continue
        elif b == "sin":
            print(math.sin(a))
            continue
        elif b == "cos":
            print(math.cos(a))
            continue
        elif b == "tan":
            print(math.tan(a))
            continue
        elif b == "log":
            print(math.log(a))
            continue
        print("第二个数:")
        c = float(input())
        d = []
        e = []
        count = 0
        if b == "+":
            print(a+c)
        elif b == "-":
            print(a-c)
        elif b == "*":
            print(a*c)
        elif b == "/":
            print(a/c)
        elif b == "()":
            for i in range(1, int(a)+1):
                if int(a) % i == 0:
                    d.append(i)
            for i in range(1, int(c)+1):
                if int(c) % i == 0:
                    e.append(i)
            count = a*c
            while True:
                if count in e and count in d:
                    break
                else:
                    count -= 1
            print(int(count))
        elif b == "[]":
            for i in range(int(a)*int(c), int(a)-1, -1):
                if i % int(a) == 0:
                    d.append(i)
            for i in range(int(a)*int(c), int(c)-1, -1):
                if i % int(c) == 0:
                    e.append(i)
            count = 0
            while True:
                if count in e and count in d:
                    break
                else:
                    count += 1
            print(int(count))
        elif b == "^":
            print(math.pow(a, c))
        else:
            print("没有这个运算符")
#SolorSystem
elif character == 5:
    print('此项目运行时间较长,请耐心观赏')
    color('darkBlue')
    dot(10000)
    for i in range(random.randint(50, 2500)):
        goto(random.randint(-700, 700), random.randint(-500, 500))
        color('white')
        dot(random.randint(1, 4))
    goto(0, 0)
    count = 0
    rand = 0
    colormode(255)
    color(255, 240, 0)
    dot(60)
    for i in range(random.randint(3, 15)):
        rt(90)
        pu()
        rand = random.randint(10, 50)
        count += rand
        fd(random.randint(30, 60)+count)
        lt(90)
        pd()
        pencolor(random.randint(128, 255), random.randint(
            128, 255), random.randint(128, 255))
        circle(60+count, 360+random.randint(0, 359))
        color(random.randint(0, 255), random.randint(
            0, 255), random.randint(0, 255))
        dot(random.randint(1, rand))
        pu()
        goto(0, 0)
#TestforAge
elif character == 6:
    age = 0
    print('下面这串数字有你的年龄吗?(有的请输入1,没有请输入0)')
    print('1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79,81,83,85,87,89,91,93,95,97,99')
    if input() == '1':
        age += 1
    print('下面这串数字有你的年龄吗?(有的请输入1,没有请输入0)')
    print('10,30,50,70,90,11,31,51,71,91,2,22,42,62,82,3,23,43,63,83,14,34,54,74,94,15,35,55,75,95,6,26,46,66,86,7,27,47,67,87,18,38,58,78,98,19,39,59,79,99')
    if input() == '1':
        age += 2
    print('下面这串数字有你的年龄吗?(有的请输入1,没有请输入0)')
    print('4,12,20,28,36,44,52,60,68,76,84,92,100,5,6,7,13,14,15,21,22,23,29,30,31,37,38,39,45,46,47,53,54,55,61,62,63,69,70,71,77,78,79,85,86,87,93,94,95,100')
    if input() == '1':
        age += 4
    print('下面这串数字有你的年龄吗?(有的请输入1,没有请输入0)')
    print('8,9,10,11,12,13,14,15,24,25,26,27,28,29,30,31,40,41,42,43,44,45,46,47,56,57,58,59,60,61,62,63,72,73,74,75,76,77,78,79,88,89,90,91,92,93,94,95')
    if input() == '1':
        age += 8
    print('下面这串数字有你的年龄吗?(有的请输入1,没有请输入0)')
    print('16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95')
    if input() == '1':
        age += 16
    print('下面这串数字有你的年龄吗?(有的请输入1,没有请输入0)')
    print('32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,96,97,98,99,100')
    if input() == '1':
        age += 32
    print('下面这串数字有你的年龄吗?(有的请输入1,没有请输入0)')
    print('喵,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,86,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100')
    if input() == '1':
        age += 喵
    print('你的年龄是%d岁' % age)
#Panda
elif character == 7:
    print('此项目运行时间较长,请耐心观赏')

    def cir(times, fds, lts):
        for i in range(times):
            fd(fds)
            lt(lts)
    speed(0)
    rt(-120)
    up()
    pensize(6)
    goto(180, 150)
    down()
    color('black', 'white')
    circle(190, 100)
    fd(20)
    cir(260, 1, 0.5)
    cir(8, 19, 1)
    cir(260, 1, 0.5)
    up()
    goto(-70, -16)
    setheading(245)
    down()
    cir(35, 1.5, 0.5)
    cir(5, 1.5, 0.0125)
    cir(9, 0.75, 1.5)
    cir(22, 1, 0.3)
    cir(20, 1, 3)
    cir(180, 1, 0.2)
    cir(20, 1, 3)
    cir(22, 1, 0.3)
    cir(9, 0.75, 1.5)
    cir(5, 1.5, 0.0125)
    cir(25, 1.5, 0.5)
    up()
    goto(-65, -119)
    down()
    begin_fill()
    color('black')
    setheading(280)
    circle(30, 135)
    end_fill()
    up()
    goto(50, -129)
    down()
    begin_fill()
    color('black')
    setheading(305)
    circle(30, 135)
    end_fill()
    up()
    goto(200, 118)
    down()
    begin_fill()
    color('black')
    setheading(20)
    circle(50, 210)
    end_fill()
    up()
    goto(-70, 227)
    down()
    begin_fill()
    color('black')
    setheading(103)
    circle(50, 230)
    end_fill()
    up()
    goto(117, -40)
    setheading(25)
    down()
    begin_fill()
    color('black')
    cir(70, 1, -0.5)
    cir(160, 0.25, -0.9)
    cir(70, 1, -0.65)
    end_fill()
    up()
    goto(-75, -25)
    setheading(155)
    down()
    begin_fill()
    color('black')
    cir(70, 1, 0.5)
    cir(160, 0.25, 0.85)
    cir(70, 1, 0.65)
    end_fill()
    up()
    goto(-45, 80)
    begin_fill()
    color('black')
    down()
    circle(25.25)
    end_fill()
    up()
    goto(-50.5, 74.5)
    begin_fill()
    color('black')
    down()
    circle(26.25)
    end_fill()
    up()
    goto(-43, 100)
    begin_fill()
    color('white')
    down()
    circle(5.5)
    end_fill()
    up()
    goto(100, 67)
    begin_fill()
    color('black')
    down()
    circle(25.25)
    end_fill()
    up()
    goto(105.5, 63.5)
    begin_fill()
    color('black')
    down()
    circle(25.25)
    end_fill()
    up()
    goto(96, 92)
    begin_fill()
    color('white')
    down()
    circle(5.5)
    end_fill()
    up()
    goto(105, 40)
    begin_fill()
    color('tomato')
    a = 0.45
    down()
    setheading(270)
    for i in range(120):
        if 0 <= i < 30 or 60 <= i < 90:
            a = a+0.045
            lt(3)
            fd(a)
        else:
            a = a-0.045
            lt(3)
            fd(a)
    end_fill()
    up()
    goto(-60, 50)
    begin_fill()
    color('tomato')
    a = 0.4
    down()
    setheading(90)
    for i in range(120):
        if 0 <= i < 30 or 60 <= i < 90:
            a = a+0.04
            lt(3)
            fd(a)
        else:
            a = a-0.04
            lt(3)
            fd(a)
    end_fill()
    up()
    goto(20, 75)
    begin_fill()
    color('black')
    setheading(125)
    down()
    cir(25, 0.75, -1)
    cir(20, 0.25, -4.5)
    cir(30, 0.75, -1)
    cir(20, 0.25, -4.5)
    cir(25, 0.75, -1)
    cir(20, 0.25, -4.5)
    end_fill()
    up()
    setheading(260)
    goto(23, 75)
    down()
    cir(45, 1, 3)
    up()
    setheading(260)
    goto(23, 75)
    down()
    cir(45, 1, -3)
    color('red')
    x = -100
    up()
    goto(x, 300)
    down()
    write('I', align='center', font=('Arial', 30, 'bold'))
    up()
    color('orange')
    x = x + 30
    goto(x, 300)
    down()
    write('l', align='center', font=('Arial', 30, 'bold'))
    up()
    x = x + 15
    color('gold')
    goto(x, 300)
    down()
    write('o', align='center', font=('Arial', 30, 'bold'))
    up()
    color('green')
    x = x + 17
    goto(x, 300)
    down()
    write('v', align='center', font=('Arial', 30, 'bold'))
    up()
    color('lime')
    x = x + 17
    goto(x, 300)
    down()
    write('e', align='center', font=('Arial', 30, 'bold'))
    up()
    color('blue')
    x = x + 32
    goto(x, 300)
    down()
    write('m', align='center', font=('Arial', 30, 'bold'))
    up()
    x = x + 20
    color('purple')
    goto(x, 300)
    down()
    write('y', align='center', font=('Arial', 30, 'bold'))
    up()
    color('black')
    x = x + 30
    goto(x, 300)
    down()
    write('P', align='center', font=('Arial', 30, 'bold'))
    up()
    color('grey')
    x = x + 17
    goto(x, 300)
    down()
    write('a', align='center', font=('Arial', 30, 'bold'))
    up()
    color('black')
    x = x + 17
    goto(x, 300)
    down()
    write('n', align='center', font=('Arial', 30, 'bold'))
    up()
    color('grey')
    x = x + 17
    goto(x, 300)
    down()
    write('d', align='center', font=('Arial', 30, 'bold'))
    up()
    color('black')
    x = x + 17
    goto(x, 300)
    down()
    write('a', align='center', font=('Arial', 30, 'bold'))
    ht()
    done()
elif character == 8:
    pensize(5)
    home()
    seth(0)
    pd()
    color('black')
    circle(20, 80)
    circle(200, 30)
    circle(30, 60)
    circle(200, 29.5)
    color('black')
    circle(20, 60)
    circle(-150, 22)
    circle(-50, 10)
    circle(50, 70)
    x_nose = xcor()
    y_nose = ycor()
    circle(30, 62)
    circle(200, 15)
    pu()
    goto(x_nose, y_nose+25)
    seth(90)
    pd()
    begin_fill()
    circle(8)
    end_fill()
    pu()
    goto(x_nose+48, y_nose+55)
    seth(90)
    pd()
    begin_fill()
    circle(8)
    end_fill()
    pu()
    color('#444444')
    goto(x_nose+100, y_nose+110)
    seth(182)
    pd()
    circle(15, 45)
    color('black')
    circle(10, 15)
    circle(90, 70)
    circle(25, 110)
    rt(4)
    circle(90, 70)
    circle(10, 15)
    color('#444444')
    circle(15, 45)
    pu()
    color('black')
    goto(x_nose+90, y_nose-30)
    seth(-130)
    pd()
    circle(250, 28)
    circle(10, 140)
    circle(-250, 25)
    circle(-200, 25)
    circle(-50, 85)
    circle(8, 145)
    circle(90, 45)
    circle(550, 5)
    seth(0)
    circle(60, 85)
    circle(40, 65)
    circle(40, 60)
    lt(150)
    circle(-40, 90)
    circle(-25, 100)
    lt(5)
    fd(20)
    circle(10, 60)
    rt(80)
    circle(200, 35)
    pensize(20)
    color('#F03C3F')
    lt(10)
    circle(-200, 25)
    pu()
    fd(18)
    lt(90)
    fd(18)
    pensize(6)
    seth(35)
    color('#FDAF17')
    begin_fill()
    lt(135)
    fd(6)
    right(180)
    circle(6, -180)
    backward(8)
    right(90)
    forward(6)
    circle(-6, 180)
    fd(15)
    end_fill()
    pensize(5)
    pu()
    color('black')
    goto(x_nose+100, y_nose-125)
    pd()
    seth(-50)
    fd(25)
    circle(10, 150)
    fd(25)
    pensize(4)
    pu()
    goto(x_nose+314, y_nose-125)
    pd()
    seth(-95)
    fd(25)
    circle(-5, 150)
    fd(2)
    hideturtle()
    done()
elif character == 9:
    from random import*
    print('此项目运行时间较长,请耐心观赏')
    # 画树方法

    def drawTree(n, l):
        pendown()
        pencolor('#5d3c3c')
        pensize(n / 1.5)
        forward(l)
        if n > 0:
            dr = randint(30, 40)
            dl = randint(30, 40)
            move = l * (random() * 0.4 + 0.5)
            right(dr)
            drawTree(n - 1, move)
            left(dr + dl)
            drawTree(n - 1, move)
            right(dl)
        else:
            drawPetal(3)
        penup()
        backward(l)
    # 花瓣位置生成

    def petalPlace(m, x, y):
        penup()
        goto(x, y)
        pendown()
        setheading(0)
        tracer(False)
        for i in range(m):
            if i == 0:
                drawPetal(5)
            else:
                penup()
                goto(x, y)
                a = randint(20, 400)
                b = randint(-50, 50)
                forward(a)
                left(90)
                forward(b)
                right(90)
                pendown()
                drawPetal(5)
    # 花朵绘画方法

    def drawPetal(n):
        colormode(255)
        r = randint(200, 255)
        g = randint(8, 158)
        b = randint(8, 158)
        begin_fill()
        fillcolor(r, g, b)
        pencolor(r, g, b)
        circle(n)
        end_fill()
    # 启动方法

    def run():
        penup()
        goto(-50, -150)
        left(90)
        pendown()
        hideturtle()
        tracer(False)
        drawTree(13, 150)
        petalPlace(160, -100, -150)
    run()
    done()
elif character == 10:
    import turtle as t
    t.colormode(255)
    t.hideturtle()
    t.speed(0)
    t.penup()
    t.pensize(4)
    t.goto(100, 0)
    t.pendown()
    t.left(90)
    t.color((0, 0, 0), (255, 255, 0))
    # 身体绘制上色
    t.begin_fill()
    t.forward(200)
    t.circle(100, 180)
    t.forward(200)
    t.circle(100, 180)
    t.end_fill()
    # 右眼睛绘制上色
    t.pensize(12)
    t.penup()
    t.goto(-100, 200)
    t.pendown()
    t.right(100)
    t.circle(500, 23)
    t.pensize(3)
    t.penup()
    t.goto(0, 200)
    t.pendown()
    t.seth(270)
    t.color("black", "white")
    t.begin_fill()
    t.circle(30)
    t.end_fill()
    t.penup()
    t.goto(15, 200)
    t.pendown()
    t.color("black", "black")
    t.begin_fill()
    t.circle(15)
    t.end_fill()
    t.penup()
    t.goto(35, 205)
    t.color("black", "white")
    t.begin_fill()
    t.circle(5)
    t.end_fill()
    # 左眼睛绘制上色
    t.pensize(3)
    t.penup()
    t.goto(0, 200)
    t.pendown()
    t.seth(90)
    t.color("black", "white")
    t.begin_fill()
    t.circle(30)
    t.end_fill()
    t.penup()
    t.goto(-15, 200)
    t.pendown()
    t.color("black", "black")
    t.begin_fill()
    t.circle(15)
    t.end_fill()
    t.penup()
    t.goto(-35, 205)
    t.color("black", "white")
    t.begin_fill()
    t.circle(5)
    t.end_fill()
    # 嘴绘制上色
    t.penup()
    t.goto(-20, 100)
    t.pendown()
    t.seth(270)
    t.color("black", "white")
    t.begin_fill()
    t.circle(20, 180)
    t.left(90)
    t.forward(40)
    t.end_fill()
    # 裤子绘制上色
    t.penup()
    t.goto(-100, 0)
    t.pendown()
    t.seth(0)
    t.color("black", '#66AAFF')
    t.begin_fill()
    t.forward(20)
    t.left(90)
    t.forward(40)
    t.right(90)
    t.forward(160)
    t.right(90)
    t.forward(40)
    t.left(90)
    t.forward(20)
    t.seth(270)
    t.penup()
    t.goto(-100, 0)
    t.circle(100, 180)
    t.end_fill()
    # 左裤子腰带
    t.penup()
    t.goto(-70, 20)
    t.pendown()
    t.color("black", '#66AAFF')
    t.begin_fill()
    t.seth(45)
    t.forward(15)
    t.left(90)
    t.forward(60)
    t.seth(270)
    t.forward(15)
    t.left(40)
    t.forward(50)
    t.end_fill()
    t.left(180)
    t.goto(-70, 30)
    t.dot()
    # 右裤腰带
    t.penup()
    t.goto(70, 20)
    t.pendown()
    t.color("black", '#66AAFF')
    t.begin_fill()
    t.seth(135)
    t.forward(15)
    t.right(90)
    t.forward(60)
    t.seth(270)
    t.forward(15)
    t.right(40)
    t.forward(50)
    t.end_fill()
    t.left(180)
    t.goto(70, 30)
    t.dot()
    # 脚
    t.penup()
    t.goto(4, -100)
    t.pendown()
    t.seth(270)
    t.color("black", "black")
    t.begin_fill()
    t.forward(30)
    t.left(90)
    t.forward(40)
    t.seth(20)
    t.circle(10, 180)
    t.circle(400, 2)
    t.seth(90)
    t.forward(20)
    t.goto(4, -100)
    t.end_fill()
    t.penup()
    t.goto(-4, -100)
    t.pendown()
    t.seth(270)
    t.color("black", "black")
    t.begin_fill()
    t.forward(30)
    t.right(90)
    t.forward(40)
    t.seth(20)
    t.circle(10, -225)
    t.circle(400, -3)
    t.seth(90)
    t.forward(21)
    t.goto(-4, -100)
    t.end_fill()
    # 左手
    t.penup()
    t.goto(-100, 50)
    t.pendown()
    t.seth(225)
    t.color("black", "yellow")
    t.begin_fill()
    t.forward(40)
    t.left(90)
    t.forward(35)
    t.seth(90)
    t.forward(50)
    t.end_fill()
    # 右手
    t.penup()
    t.goto(100, 50)
    t.pendown()
    t.seth(315)
    t.color("black", "yellow")
    t.begin_fill()
    t.forward(40)
    t.right(90)
    t.forward(36)
    t.seth(90)
    t.forward(50)
    t.end_fill()
    t.penup()
    t.goto(0, -100)
    t.pendown()
    t.forward(30)
    t.penup()
    t.goto(0, -20)
    t.pendown()
    t.color("yellow")
    t.begin_fill()
    t.seth(45)
    t.forward(20)
    t.circle(10, 180)
    t.right(90)
    t.circle(10, 180)
    t.forward(20)
    t.end_fill()
    t.penup()
    t.color("black")
    t.goto(-100, -20)
    t.pendown()
    t.circle(30, 90)
    t.penup()
    t.goto(100, -20)
    t.pendown()
    t.circle(30, -90)
    # 头顶
    t.penup()
    t.goto(2, 300)
    t.pendown()
    t.begin_fill()
    t.seth(135)
    t.circle(100, 40)
    t.end_fill()

    t.penup()
    t.goto(2, 300)
    t.pendown()
    t.begin_fill()
    t.seth(45)
    t.circle(100, 40)
    t.end_fill()
elif character == 11:
    import turtle as t
    t.speed(0)
    t.hideturtle()
    t.pensize(3)
    t.pu()
    t.goto(-10, 0)
    t.down()
    t.lt(53)
    t.fd(20)
    t.rt(106)
    t.fd(20)

    t.pu()
    t.goto(72, -80)
    t.down()
    t.lt(90)
    t.circle(120, 286)

    t.up()
    t.home()
    t.pu()
    t.goto(-48, 0)
    t.down()
    t.lt(90)
    t.color("pink")
    t.fillcolor("pink")
    t.begin_fill()
    t.circle(24, 360)
    t.end_fill()

    t.pu()
    t.goto(75, 22)
    t.down()
    t.lt(90)
    t.color("pink")
    t.fillcolor("pink")
    t.begin_fill()
    t.circle(24, 360)
    t.end_fill()

    t.up()
    t.home()
    t.pu()
    t.goto(-12, 50)
    t.down()
    t.pensize(2)
    t.lt(90)
    t.color("black")
    t.circle(26, 90)
    t.fd(20)
    t.circle(26, 90)
    t.circle(13, 90)
    t.fd(45)
    t.circle(13, 90)

    t.up()
    t.home()
    t.pu()
    t.goto(90, 50)
    t.down()
    t.pensize(2)
    t.lt(90)
    t.color("black")
    t.circle(26, 90)
    t.fd(20)
    t.circle(26, 90)
    t.circle(13, 90)
    t.fd(45)
    t.circle(13, 90)

    t.up()
    t.home()
    t.pu()
    t.goto(-27, 56)
    t.down()
    t.lt(90)
    t.fillcolor("black")
    t.begin_fill()
    t.circle(19, 360)
    t.end_fill()

    t.up()
    t.home()
    t.pu()
    t.goto(85, 56)
    t.down()
    t.lt(90)
    t.fillcolor("black")
    t.begin_fill()
    t.circle(19, 360)
    t.end_fill()

    t.up()
    t.home()
    t.pu()
    t.goto(-72, -80)
    t.down()
    t.pensize(3)
    t.rt(110)
    t.circle(180, 25)

    t.up()
    t.home()
    t.pu()
    t.goto(-22, -120)
    t.down()
    t.fd(40)
    t.circle(12, 180)
    t.fd(38)

    t.pu()
    t.home()
    t.rt(53)
    t.pu()
    t.goto(72, -80)
    t.rt(53)
    t.down()
    t.circle(180, 25)

    t.pu()
    t.home()
    t.rt(53)
    t.pu()
    t.goto(68, -116)
    t.down()
    t.circle(12, 360)

    t.pu()
    t.home()
    t.pu()
    t.goto(0, 136)
    t.down()
    t.lt(90)
    t.fd(24)
    t.color("black")
    t.fillcolor("#C0FF3E")
    t.begin_fill()
    t.circle(10, 360)
    t.end_fill()
    t.lt(180)
    t.fillcolor("#C0FF3E")
    t.begin_fill()
    t.circle(10, 360)
    t.end_fill()
    t.done()
elif character == 12:
    import turtle as t
    t.pd()
    #先绘制一个黄色的⚪:
    t.pensize(200)
    t.pencolor("yellow")
    t.circle(100, 360)
    #绘制嘴巴:从嘴巴左边开始起笔,旋转180°
    t.penup()
    t.seth(90)
    t.fd(90)
    t.seth(180)
    t.fd(150)
    t.seth(270)
    t.pendown()
    t.pensize(5)
    t.pencolor("black")
    t.circle(150, 180)
    #开始绘制眼睛的轮廓:
    t.penup()
    t.fd(90)
    t.seth(155)
    t.pendown()
    t.pensize(40)
    t.pencolor("white")
    t.circle(160, 45)
    t.penup()
    t.circle(160, -45)
    t.seth(180)
    t.fd(180)
    t.seth(155)
    t.pendown()
    t.circle(160, 45)
    #开始绘制眼球部分:
    t.penup()
    t.seth(0)
    t.fd(20)
    t.pendown()
    t.pensize(16)
    t.pencolor("black")
    t.circle(8)
    t.penup()
    t.fd(180)
    t.pendown()
    t.circle(8)
    t.done()
elif character == 13:
    print('魔法少女正在加载中,请稍等片刻')
    import turtle as te
    import time
    te.speed(0)
    WriteStep = 15  # 贝塞尔函数的取样次数
    Speed = 5
    Width = 600  # 界面宽度
    Height = 500  # 界面高度
    Xh = 0  # 记录前一个贝塞尔函数的手柄

    def Bezier(p1, p2, t):  # 一阶贝塞尔函数
        return p1 * (1 - t) + p2 * t

    def Bezier_2(x1, y1, x2, y2, x3, y3):  # 二阶贝塞尔函数
        te.goto(x1, y1)
        te.pendown()
        for t in range(0, WriteStep + 1):
            x = Bezier(Bezier(x1, x2, t / WriteStep),
                       Bezier(x2, x3, t / WriteStep), t / WriteStep)
            y = Bezier(Bezier(y1, y2, t / WriteStep),
                       Bezier(y2, y3, t / WriteStep), t / WriteStep)
        te.goto(x, y)
        te.penup()

    def Bezier_3(x1, y1, x2, y2, x3, y3, x4, y4):  # 三阶贝塞尔函数
        x1 = -Width / 2 + x1
        y1 = Height / 2 - y1
        x2 = -Width / 2 + x2
        y2 = Height / 2 - y2
        x3 = -Width / 2 + x3
        y3 = Height / 2 - y3
        x4 = -Width / 2 + x4
        y4 = Height / 2 - y4  # 坐标变换
        te.goto(x1, y1)
        te.pendown()
        for t in range(0, WriteStep + 1):
            x = Bezier(Bezier(Bezier(x1, x2, t / WriteStep), Bezier(x2, x3, t/WriteStep), t / WriteStep),
                       Bezier(Bezier(x2, x3, t / WriteStep), Bezier(x3, x4, t/WriteStep), t / WriteStep), t / WriteStep)
            y = Bezier(Bezier(Bezier(y1, y2, t / WriteStep), Bezier(y2, y3, t / WriteStep), t / WriteStep),
                       Bezier(Bezier(y2, y3, t / WriteStep), Bezier(y3, y4, t/WriteStep), t / WriteStep), t / WriteStep)
            te.goto(x, y)
        te.penup()

    def Moveto(x, y):  # 移动到svg坐标下(x,y)
        te.penup()
        te.goto(-Width / 2 + x, Height / 2 - y)

    def line(x1, y1, x2, y2):  # 连接svg坐标下两点
        te.penup()
        te.goto(-Width / 2 + x1, Height / 2 - y1)
        te.pendown()
        te.goto(-Width / 2 + x2, Height / 2 - y2)
        te.penup()

    def lineto(dx, dy):  # 连接当前点和相对坐标(dx,dy)的点
        te.pendown()
        te.goto(te.xcor() + dx, te.ycor() - dy)
        te.penup()

    def Lineto(x, y):  # 连接当前点和svg坐标下(x,y)
        te.pendown()
        te.goto(-Width / 2 + x, Height / 2 - y)
        te.penup()

    def Horizontal(x):  # 做到svg坐标下横坐标为x的水平线
        te.pendown()
        te.setx(x - Width / 2)
        te.penup()

    def horizontal(dx):  # 做到相对横坐标为dx的水平线
        te.seth(0)
        te.pendown()
        te.fd(dx)
        te.penup()

    def vertical(dy):  # 做到相对纵坐标为dy的垂直线
        te.seth(-90)
        te.pendown()
        te.fd(dy)
        te.penup()
        te.seth(0)

    def polyline(x1, y1, x2, y2, x3, y3):  # 做svg坐标下的折线
        te.penup()
        te.goto(-Width / 2 + x1, Height / 2 - y1)
        te.pendown()
        te.goto(-Width / 2 + x2, Height / 2 - y2)
        te.goto(-Width / 2 + x3, Height / 2 - y3)
        te.penup()

    def Curveto(x1, y1, x2, y2, x, y):  # 三阶贝塞尔曲线到(x,y)
        te.penup()
        X_now = te.xcor() + Width / 2
        Y_now = Height / 2 - te.ycor()
        Bezier_3(X_now, Y_now, x1, y1, x2, y2, x, y)
        global Xh
        global Yh
        Xh = x - x2
        Yh = y - y2

    def curveto_r(x1, y1, x2, y2, x, y):  # 三阶贝塞尔曲线到相对坐标(x,y)
        te.penup()
        X_now = te.xcor() + Width / 2
        Y_now = Height / 2 - te.ycor()
        Bezier_3(X_now, Y_now, X_now + x1, Y_now + y1,
                 X_now + x2, Y_now + y2, X_now + x, Y_now + y)
        global Xh
        global Yh
        Xh = x - x2
        Yh = y - y2

    def Smooth(x2, y2, x, y):  # 平滑三阶贝塞尔曲线到(x,y)
        global Xh
        global Yh
        te.penup()
        X_now = te.xcor() + Width / 2
        Y_now = Height / 2 - te.ycor()
        Bezier_3(X_now, Y_now, X_now + Xh, Y_now + Yh, x2, y2, x, y)
        Xh = x - x2
        Yh = y - y2

    def 喵ooth_r(x2, y2, x, y):  # 平滑三阶贝塞尔曲线到相对坐标(x,y)
        global Xh
        global Yh
        te.penup()
        X_now = te.xcor() + Width / 2
        Y_now = Height / 2 - te.ycor()
        Xh = x - x2
        Yh = y - y2
        Bezier_3(X_now, Y_now, X_now + Xh, Y_now + Yh,
                 X_now + x2, Y_now + y2, X_now + x, Y_now + y)

    te.tracer(10)
    te.pensize(1)
    te.speed(Speed)
    te.penup()
    # 图层_2
    time.sleep(20)
    te.color("black", "#F2F2F2")  # 外套
    Moveto(61, 462)
    te.begin_fill()
    喵ooth_r(12, -41, 27, -58)
    curveto_r(-6, -36, 6, -118, 9, -132)
    curveto_r(-15, -27, -23, -51, -26, -74)
    curveto_r(4, -66, 38, -105, 65, -149)
    Horizontal(486)
    curveto_r(12, 24, 40, 99, 33, 114)
    curveto_r(39, 82, 55, 129, 39, 144)
    喵ooth_r(-31, 23, -39, 28)
    喵ooth_r(-12, 37, -12, 37)
    lineto(50, 92)
    Horizontal(445)
    喵ooth_r(-29, -38, -31, -46)
    喵ooth_r(78, -107, 72, -119)
    Smooth(355, 178, 340, 176)
    Smooth(272, 63, 2喵, 喵)
    喵ooth_r(-29, 67, -27, 73)
    Curveto(99, 292, 174, 428, 173, 439)
    喵ooth_r(-8, 23, -8, 23)
    Lineto(61, 462)
    te.end_fill()
    Moveto(60.5, 461.5)  # 阴影
    te.color("black", "#D3DFF0")
    te.begin_fill()
    curveto_r(0, 0, 17, -42, 27, -59)
    curveto_r(-6, -33, 6, -128, 10, -133)
    curveto_r(-15, -10, -27, -66, -27.285, -75)
    te.pencolor("#D3DFF0")
    curveto_r(12.285, 11, 82.963, 156, 82.963, 156)
    te.pencolor("black")
    喵ooth_r(12.322, 75, 19.322, 86)
    curveto_r(-1, 11, -8, 25, -8, 25)
    Horizontal(60.5)
    te.end_fill()
    Moveto(444.5, 4喵)
    te.begin_fill()
    curveto_r(0, 0, -29, -36, -31, -46)
    喵ooth_r(53.59, -82.337, 53.59, -82.337)
    te.pencolor("#D3DFF0")
    喵ooth_r(86.41, -47.663, 96.072, -54.85)
    Curveto(563.5, 297.5, 570.5, 299.5, 518.5, 334)
    te.pencolor("black")
    curveto_r(-2, 16, -12, 33, -12, 37)
    喵ooth_r(50, 92, 50, 93)
    Horizontal(444.5)
    te.end_fill()
    Moveto(195, 49)
    te.begin_fill()
    te.pencolor("#D3DFF0")
    polyline(195, 49, 175.5, 106.5, 202.522, 49)
    te.pencolor("black")
    Horizontal(195)
    te.pencolor("#D3DFF0")
    te.end_fill()
    Moveto(327.997, 49)
    te.begin_fill()
    te.pencolor("#D3DFF0")
    curveto_r(0, 0, 11.503, 121.087, 13.503, 128.087)
    curveto_r(11, 2, 54, 37, 54, 37)
    lineto(-40, -165.087)
    te.pencolor("black")
    Horizontal(327.997)
    te.pencolor("#D3DFF0")
    te.end_fill()
    te.pencolor("black")
    line(94.5, 397.5, 107.5, 373.5)  # 皱纹
    line(122.5, 317.5, 95.875, 274.699)
    line(122.5, 341.5, 141.5, 402.5)
    line(141.5, 409.5, 153.5, 431.5)
    line(328, 47.712, 344, 175.977)
    line(340.023, 49, 360.5, 144)
    line(353.5, 47.5, 395.5, 208.5)
    line(478.5, 95.5, 518.5, 161.5)
    line(518.5, 332.5, 460.5, 359.5)
    polyline(506.5, 369.5, 493.5, 402.5, 502.5, 443.5)
    Moveto(530, 429)
    curveto_r(4, 16, -5, 33, -5, 33)
    # 图层_3
    te.color("black", "#喵1d2a")  # 外套内侧
    Moveto(225, 462)
    te.begin_fill()
    Horizontal(165)
    喵ooth_r(9, -15, 8, -25)
    curveto_r(-47, -126, 6, -212, 12, -225)
    Curveto(185, 305, 202, 428, 225, 462)
    Lineto(225, 462)
    te.end_fill()
    Moveto(390, 462)
    te.begin_fill()
    curveto_r(10, -23, 34, -180, 35, -222)  # !!!227
    curveto_r(7, 4, 54, 45, 61, 61)  # 61
    喵ooth_r(-73, 101, -72, 118)
    curveto_r(5, 15, 31, 46, 31, 45)
    Lineto(390, 462)
    te.end_fill()
    # 图层_4
    te.color("black", "#喵1d29")  # 外套内侧
    Moveto(225, 462)
    te.begin_fill()
    curveto_r(-28, -50, -40, -166, -40, -250)
    curveto_r(6, 51, -6, 87, 45, 106)
    喵ooth_r(喵, 27, 89, 24)
    喵ooth_r(49, -18, 56, -20)
    喵ooth_r(50, -10, 51, -85)
    curveto_r(0, 29, -25, 201, -36, 225)
    Lineto(225, 462)
    te.end_fill()
    # 图层_5
    te.color("black", "#3D3D3D")  # 衣服
    Moveto(225, 462)
    te.begin_fill()
    curveto_r(-5, -5, -22, -53, -23, -70)
    lineto(32, -13)
    curveto_r(3, -25, 6, -28, 12, -36)
    喵ooth_r(13, -12, 16, -12)
    vertical(-2)
    curveto_r(45, 20, 喵, 14, 94, 1)
    vertical(2)
    curveto_r(8, -2, 15, 2, 17, 4)
    喵ooth_r(0, 6, -2, 9)
    curveto_r(10, 10, 10, 29, 11, 33)
    喵ooth_r(23, 4, 25, 6)
    喵ooth_r(-17, 83, -17, 78)
    Lineto(225, 462)
    te.end_fill()
    # 图层_6
    te.color("black", "#968281")  # 脖子
    Moveto(262, 329)
    te.begin_fill()
    vertical(17)
    curveto_r(1, 2, 44, 14, 45, 15)
    喵ooth_r(3, 12, 3, 12)
    horizontal(3)
    vertical(-5)
    curveto_r(1, -3, 4, -6, 5, -7)
    lineto(36, -14)
    curveto_r(1, -1, 3, -16, 2, -17)
    Curveto(318, 348, 296, 344, 262, 329)
    te.end_fill()
    # 图层_8
    te.color("black", "#E7F1FF")  # 白色褶皱
    Moveto(225, 462)
    te.begin_fill()
    lineto(-3, -5)  # -3,-3,-3,-5
    curveto_r(0, -2, 4, -4, 5, -6)
    喵ooth_r(16, 3, 19, -8)
    喵ooth_r(0, -7, 0, -11)
    喵ooth_r(5, -8, 9, -5)
    喵ooth_r(19, -8, 19, -11)
    喵ooth_r(6, -7, 6, -7)
    喵ooth_r(7, -2, 9, -4)
    lineto(41, -2)
    lineto(12, 9)
    喵ooth_r(3, 15, 7, 18)
    喵ooth_r(15, 4, 17, 4)
    喵ooth_r(4, -4, 6, -4)
    喵ooth_r(6, 4, 5, 9)
    喵ooth_r(0, 9, 0, 9)
    喵ooth_r(1, 7, 7, 6)
    喵ooth_r(8, 0, 8, 0)
    lineto(-2, 8)
    Lineto(225, 462)
    te.end_fill()
    te.pensize(2)
    Moveto(240, 450)
    喵ooth_r(0, 9, 3, 12)
    Moveto(372, 462)
    curveto_r(-2, -4, -5, -29, -7, -28)
    te.pensize(1)
    # 图层_7
    te.color("black", "#A2B8D6")  # 衣领
    Moveto(262, 331)
    te.begin_fill()
    curveto_r(0, 8, -1, 13, 0, 15)
    喵ooth_r(43, 14, 45, 15)
    lineto(3, 12)
    horizontal(3)
    喵ooth_r(-1, -3, 0, -5)
    lineto(5, -7)
    lineto(36, -14)
    curveto_r(1, -1, 2, -12, 2, -15)
    喵ooth_r(25, -2, 15, 13)
    curveto_r(-2, 4, -7, 29, -7, 32)
    喵ooth_r(-35, 19, -41, 22)
    喵ooth_r(-9, 14, -12, 14)
    喵ooth_r(-7, -12, -14, -15)
    curveto_r(-19, -2, -41, -25, -41, -25)
    喵ooth_r(-10, -26, -10, -30)
    Smooth(255, 332, 262, 331)
    te.end_fill()
    Moveto(262, 346)
    lineto(-12, -6)
    Moveto(369, 333)
    curveto_r(2, 4, -6, 10, -15, 14)
    # 图层_9
    te.color("black", "#151515")  # 领结
    Moveto(247, 358)
    te.begin_fill()
    curveto_r(-5, 3, -8, 20, -6, 23)
    curveto_r(25, 21, 50, 17, 50, 17)
    lineto(-23, 喵)
    horizontal(22)
    喵ooth_r(1, -13, 2, -16)
    lineto(13, -50)
    curveto_r(2, 2, 7, 3, 10, 1)
    喵ooth_r(18, 65, 18, 65)
    horizontal(19)
    lineto(-24, -65)
    curveto_r(21, 5, 39, -10, 44, -13)
    curveto_r(5, -20, 1, -21, 0, -24)
    curveto_r(-18, -2, -49, 15, -52, 17)
    喵ooth_r(-11, -3, -15, -1)
    Smooth(252, 356, 247, 358)
    te.end_fill()
    # 图层_10
    te.color("black", "#A2B8D6")  # 衣领(透过领结)
    Moveto(297, 387)
    te.begin_fill()
    lineto(-11, 6)
    curveto_r(-1, 0, -20, -7, -30, -19)
    Curveto(259, 373, 297, 385, 297, 387)
    te.end_fill()
    Moveto(323, 384)
    te.begin_fill()
    lineto(8, 7)
    lineto(30, -14)
    curveto_r(1, -1, 5, -6, 4, -7)
    Smooth(329, 379, 323, 384)
    te.end_fill()
    # 图层_11
    te.color("black", "#F3EEEB")  # 脸
    Moveto(185, 212)
    te.begin_fill()
    curveto_r(4, -9, 46, -77, 52, -75)
    curveto_r(-2, -17, 19, -68, 27, -73)
    curveto_r(16, 15, 71, 108, 76, 112)
    喵ooth_r(76, 53, 86, 60)
    curveto_r(0, 65, -27, 75, -31, 76)
    curveto_r(-50, 28, -70, 30, -85, 30)
    喵ooth_r(-77, -22, -86, -26)
    Curveto(180, 302, 186, 228, 185, 212)
    te.end_fill()
    # 图层_12
    te.color("black", "#2B1D29")  # 头发
    Moveto(189, 202)
    te.begin_fill()
    curveto_r(-1, 22, 19, 51, 19, 51)
    喵ooth_r(-10, -42, 7, -92)
    Curveto(212, 168, 196, 189, 189, 202)
    te.end_fill()
    Moveto(221, 155)
    te.begin_fill()
    curveto_r(-2, 6, 5, 48, 5, 48)
    喵ooth_r(18, -28, 20, -48)
    curveto_r(-5, 24, 4, 43, 7, 50)
    curveto_r(-10, -49, 3, -72, 13, -106)
    curveto_r(-2, -7, -3, -32, -3, -35)
    curveto_r(-17, 18, -27, 71, -27, 71)
    Lineto(221, 155)
    te.end_fill()
    Moveto(2喵, 喵)
    te.begin_fill()
    curveto_r(-4, 5, 14, 100, 14, 100)
    喵ooth_r(-6, -79, -5, -85)
    curveto_r(0, 98, 49, 139, 49, 139)
    喵ooth_r(8, -50, 3, -65)
    Smooth(272, 喵, 2喵, 喵)
    te.end_fill()
    Moveto(342, 176)
    te.begin_fill()
    curveto_r(-1, 27, -10, 57, -10, 57)
    喵ooth_r(20, -33, 17, -54)
    Lineto(342, 176)
    te.end_fill()
    te.penup()
    te.begin_fill()
    polyline(349, 180, 353, 203, 361, 203)
    polyline(361, 203, 362, 188, 349, 180)
    te.end_fill()
    # 图层_13
    te.pensize(2)
    Moveto(210, 180)  # 眉毛
    curveto_r(5, -4, 63, 9, 63, 14)
    Moveto(338, 193)
    curveto_r(0, -3, 18, -6, 18, -6)
    te.pensize(1)
    # 图层_14
    te.color("black", "#D1D1D1")  # 眼睛1
    te.pensize(2)
    Moveto(206, 212)
    te.begin_fill()
    lineto(15, -7)
    curveto_r(4, -1, 26, -2, 30, 0)
    喵ooth_r(10, 3, 12, 7)
    te.pencolor("#D1D1D1")
    te.pensize(1)
    喵ooth_r(2, 27, -1, 30)
    喵ooth_r(-39, 5, -44, 1)
    Smooth(206, 212, 206, 212)
    te.end_fill()
    Moveto(384, 204)
    te.begin_fill()
    te.pencolor("black")
    te.pensize(2)
    curveto_r(-3, -1, -18, -1, -28, 1)
    喵ooth_r(-9, 6, -10, 9)
    te.pencolor("#D1D1D1")
    te.pensize(1)
    喵ooth_r(3, 18, 6, 23)
    喵ooth_r(38, 6, 40, 4)
    喵ooth_r(10, -9, 13, -22)
    te.pencolor("black")
    te.pensize(2)
    Lineto(384, 204)
    te.end_fill()
    # 图层_15
    te.color("#0C1631", "#0C1631")  # 眼睛2
    te.pensize(1)
    Moveto(216, 206)
    te.begin_fill()
    curveto_r(-1, 5, 0, 26, 7, 35)
    喵ooth_r(30, 2, 33, 0)
    喵ooth_r(5, -31, 2, -34)
    Smooth(219, 203, 216, 206)
    te.end_fill()
    Moveto(354, 207)
    te.begin_fill()
    curveto_r(-2, 1, 2, 29, 4, 31)
    喵ooth_r(30, 3, 33, 1)
    喵ooth_r(6, -24, 4, -27)
    lineto(-11, -8)
    Curveto(382, 204, 357, 206, 354, 207)
    te.end_fill()
    # 图层_17
    te.color("#F5F5F5", "#F5F5F5")  # 眼睛3
    Moveto(253, 211)
    te.begin_fill()
    curveto_r(-3, 0, -8, 8, 1, 10)
    Smooth(258, 210, 253, 211)
    te.end_fill()
    Moveto(392, 209)
    te.begin_fill()
    lineto(4, 3)
    vertical(4)
    lineto(-4, 2)
    Curveto(386, 214, 392, 209, 392, 209)
    te.end_fill()
    # 图层_18
    te.color("#352F53", "#352F53")  # 眼睛4
    Moveto(219, 229)
    te.begin_fill()
    喵ooth_r(2, -5, 6, -4)
    喵ooth_r(18, 13, 27, 1)
    curveto_r(3, 0, 5, 3, 5, 3)
    vertical(13)
    Horizontal(224)
    Lineto(219, 229)
    te.end_fill()
    Moveto(357, 227)
    te.begin_fill()
    喵ooth_r(4, -6, 10, -2)
    喵ooth_r(10, 13, 19, 1)
    curveto_r(6, 0, 8, 6, 8, 6)
    lineto(-2, 9)
    curveto_r(-12, 3, -29, 0, -32, -2)
    Smooth(357, 227, 357, 227)
    te.end_fill()
    # 图层_19
    te.color("#9A90CB", "#9A90CB")  # 眼睛5
    Moveto(227, 231)
    te.begin_fill()
    curveto_r(-6, 0, -5, 5, -3, 8)
    喵ooth_r(24, 2, 27, 0)
    喵ooth_r(0, -8, -1, -8)
    Smooth(234, 231, 227, 231)
    te.end_fill()
    Moveto(361, 227)
    te.begin_fill()
    curveto_r(2, 18, 26, 14, 30, 6)
    喵ooth_r(-1, -3, -2, -4)
    喵ooth_r(-15, 9, -24, -4)
    Curveto(363, 224, 361, 225, 361, 227)
    te.end_fill()
    # 图层_16
    te.pencolor("black")  # 眼睛(线条)
    te.pensize(3)
    Moveto(206, 213)
    lineto(14, -8)
    curveto_r(3, -1, 30, 0, 33, 1)
    lineto(10, 6)
    Moveto(225, 215)
    curveto_r(10, 28, 22, 16, 24, 6)
    Moveto(365, 219)
    curveto_r(4, 14, 18, 24, 22, -3)
    te.pensize(2)
    line(240.5, 207.5, 227.5, 211.5)
    line(245.5, 209.5, 227.5, 214.5)
    line(247.5, 211.5, 227.5, 217.5)
    line(247.5, 214.5, 229.5, 220.5)
    line(247.5, 218.5, 230.5, 223.5)
    line(246.5, 222.5, 232.5, 226.5)
    line(244.5, 225.5, 234.5, 228.5)
    line(377.5, 207.5, 367.5, 210.5)
    line(384.5, 207.5, 366.5, 212.5)
    line(385.5, 210.5, 366.5, 215.5)
    line(384.5, 213.5, 366.5, 218.5)
    line(384.5, 215.5, 367.5, 220.5)
    line(384.5, 218.5, 368.5, 223.5)
    line(383.5, 220.5, 368.5, 225.5)
    line(382.5, 223.5, 370.5, 227.5)
    line(381.5, 226.5, 373.5, 229.5)
    # 图层_20
    te.pencolor("black")
    Moveto(309, 270)  # 鼻子、嘴
    curveto_r(0, 0, 4, 7, 1, 9)
    line(296.5, 307.5, 303.5, 307.5)
    Moveto(315, 307)
    喵ooth_r(10, -1, 10, 2)
    te.penup()
    te.hideturtle()
    te.update()
    te.done()

 

【提示】

部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:

https://python.codemao.cn


回复

上一页1 页 / 共 0下一页