Python: 26 pica pica Pikachu sonrisa

Ja, ja, ja, códigos kawaii presentaron ^ _ ^:

tortuga de importación como t

def nariz ():
    t.penup ()
    t.seth (90)
    t.fd (100)
    t.pendown ()
    t.begin_fill ()
    t.fillcolor ( "negro")
    t.seth (45)
    t.fd ( 25)
    t.seth (135)
    t.circle (25,90)
    t.seth (315)
    t.fd (25)
    t.end_fill ()
    
def ojos (Seth, fd, c):
    t.penup ()
    t. Seth (Seth)
    t.fd (fd)
    t.pendown ()
    t.begin_fill ()
    t.fillcolor ( 'negro')
    t.circle (50)
    t.end_fill ()
    t.penup ()
    t.circle (50, c)
    t.pendown ()
    t.begin_fill ()
    t.fillcolor ( 'blanco')
    t.circle (20)
    t.end_fill ()
    
def cara (Seth, fd):
    t.penup ()
    t.seth (Seth)
    t.fd (fd)
    t.pendown ()
    t.begin_fill ()
    t.fillcolor ( 'rojo')
    t.circle (70)
    t.end_fill ()
    
def labio ():
    t.penup ()
    t.seth (135)
    t.fd (250)
    t.pendown ()
    t.seth (-300)
    t .circle (30, -65)
    t.begin_fill ()
    t.fillcolor ( 'Firebrick')
    t.seth (165)
    t.fd (140)
    t.seth (195)
    t.fd (140)
    t.seth (- 360)
    t.circle (30, -65)
    t.penup ()
    t.seth (-60)
    t.circle (30,65)
    t.pendown ()
    t.seth (-70)
    t.fd (240)
    t.circle (55140)
    t.seth (70)
    t.fd (240)
    t.end_fill ()
    t .seth (-110)
    t.fd (80)
    t.begin_fill ()
    t.fillcolor ( 'Firebrick')
    t.seth (120)
    t.circle (120123)
    t.seth (-70)
    t.fd (165)
    t.circle (55140)
    t.seth (72)
    t.fd (165)
    t.end_fill ()
    
establecer def ():
    t.pensize (4)
    t.hideturtle ()
    t.setup (1000,600)
    t.speed (10)
    t.screensize (bg = 'amarillo')
    
def main ():
    ajuste ()
    nariz ()
    ojos (160,250,60)
    ojos (-9.5,530,230)
    cara (195600)
    cara (-11720)
    labio ()
    t.done ()
    
si __name__ == '__main__':
    main ()
运行结果:

 Los eventos pasados: Pitón pintar con un poco de todo Pikachu https://blog.csdn.net/weixin_44015669/article/details/105169801
https://blog.csdn.net/weixin_44015669/article/ con Python pintura cerdo Página detalles / 105169549
https://mp.csdn.net/console/editor/html/105170167 blanco puede llamar más la atención a Xiao Bian entendidos por Python pintura Oh!

Publicados 233 artículos originales · ganado elogios 504 · vistas 170 000 +

Supongo que te gusta

Origin blog.csdn.net/weixin_44015669/article/details/105170269
Recomendado
Clasificación