自己慢慢摸索着画的,希望大家不要嫌弃,毕竟我也是个编程小白!!!
这是运行之后的滑稽笑脸,有点丑。
这里的左眼框的代码是借鉴于这篇博客的左眼眶代码,右眼眶之所以这么丑是因为是自己摸索着拼凑完成的
下面是我借鉴左眼眶代码文章的网址
https://blog.csdn.net/Saltwater_Room/article/details/82932778?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522159169644219725211945456%2522%252C%2522scm%2522%253A%252220140713.130102334…%2522%257D&request_id=159169644219725211945456&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2allfirst_rank_ecpm_v1~rank_ctr_v1-4-82932778.ecpm_v1_rank_ctr_v1&utm_term=Python%E7%94%BB%E6%BB%91%E7%A8%BD%E7%AC%91%E8%84%B8
# -*- coding : utf-8 -*-
# @Time : 2020/6/9 18:29
# @author : 无言独敲代码
# @Software : PyCharm
from turtle import*
pensize(3)
#画脸
color("yellow", "yellow")
hideturtle()
penup()
goto(-250, 0)
seth(-90)
pendown()
begin_fill()
circle(250)
end_fill()
#画嘴巴
pensize(4)
color("black")
penup()
goto(-180, -30)
seth(270)
pendown()
circle(180, 180)
#画左眼睛
penup()
pensize(4)
goto(-180, 90)
pendown()
seth(40)
begin_fill()
circle(-120, 80)
penup()
goto(-180, 90)
seth(-130)
pendown()
circle(15, 110)
seth(40)
circle(-106, 83)
seth(30)
circle(18, 105)
fillcolor('white')
end_fill()
#画右眼睛
penup()
pensize(4)
goto(180, 90)
pendown()
seth(140)
begin_fill()
circle(120, 80)
penup()
goto(180, 90)
seth(250)
pendown()
circle(-15, 110)
seth(150)
circle(106, 58)
seth(-130)
circle(-18, 102)
fillcolor('white')
end_fill()
#画眼睛
penup()
goto(160, 100)
pendown()
begin_fill()
circle(8)
fillcolor("black")
end_fill()
penup()
goto(-50, 100)
pendown()
begin_fill()
circle(8)
fillcolor("black")
end_fill()
done()