猫史档案馆


【Python作品分享】滑稽【教程贴】

用户:Alex_NuteAlex_Nute查看:0 回复:1 评论:0 创建时间:2021-06-23T18:27:05


【作品展示】

center_image

 

【作品介绍】

一个表情

 

【作品源代码】


import turtle
t=turtle
#速度
t.speed(1)

t.penup()
t.fd(75)
t.pendown()
t.pensize(150)
t.pencolor("gold")
t.seth(90)
t.circle(75)

#脸

t.seth(0)
t.penup()
t.fd(21)
t.seth(-90)
t.fd(72)
t.seth(53)
t.pendown()
t.pencolor("red")
t.pensize(30)
t.circle(120,-106)
t.seth(90)
#嘴

#腮帮子
t.penup()
t.fd(82)
t.seth(180)
t.fd(44)
t.seth(0)
t.pendown()
t.pensize(20)
t.pencolor("pink")
t.fd(60)
t.penup()
t.fd(160)
t.pendown()
t.fd(60)
t.seth(90)
t.penup()

#yanbai

t.fd(40)
t.seth(180)
t.fd(10)
t.seth(163)
t.pendown()
t.pencolor("white")
t.pensize(40)
t.circle(154.54,30)
t.seth(180)
t.penup()
t.fd(100)
t.seth(1喵)
t.pendown()
t.circle(154.54,30)
t.penup()

#yaqiu
t.seth(0)
t.fd(25)
t.seth(90)
t.fd(2)
t.pendown()
t.pencolor("black")
t.pensize(16)
t.circle(8)
t.penup()
t.seth(0)
t.fd(180)
t.seth(90)
t.pendown()
t.circle(8)
t.penup()
#meimao
t.seth(180)
t.fd(10)
t.seth(90)
t.fd(33)
t.seth(-120)
t.pendown()
t.pensize(2)
t.circle(21,-120)
t.penup()
t.seth(180)
t.fd(201.56)
t.seth(120)
t.pendown()
t.circle(21,120)
turtle.done()

 

【提示】

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

https://python.codemao.cn


回复

上一页1 页 / 共 1下一页
被窝哲学家a被窝哲学家a

沙发center_image

点赞0


评论