<em>Mac</em>Book项目 2009年学校开始实施<em>Mac</em>Book项目,所有师生配备一本<em>Mac</em>Book,并同步更新了校园无线网络。学校每周进行电脑技术更新,每月发送技术支持资料,极大改变了教学及学习方式。因此2011
2021-06-01 09:32:01
使用python畫一個冰墩墩先看效果圖
import turtle turtle.setup(800,600) turtle.speed(10)
turtle.penup() turtle.goto(177,112) turtle.pencolor('lightgray') turtle.pensize(3) turtle.fillcolor('white') turtle.begin_fill() turtle.pendown() turtle.setheading(80) turtle.circle(-45,200) turtle.circle(-300,23) turtle.end_fill() turtle.goto(182,95) turtle.pencolor('black') turtle.pensize(1) turtle.fillcolor('black') turtle.setheading(95) turtle.circle(-37,160) turtle.circle(-20,50) turtle.circle(-200,30)
turtle.penup() turtle.goto(-73, 230) turtle.pencolor("lightgray") turtle.pensize(3) turtle.fillcolor("white") turtle.begin_fill() turtle.pendown() turtle.setheading(20) turtle.circle(-250, 35) turtle.setheading(50) turtle.circle(-42, 180) turtle.setheading(-50) turtle.circle(-190, 30) turtle.circle(-320, 45) turtle.circle(120, 30) turtle.circle(200, 12) turtle.circle(-18, 85) turtle.circle(-180, 23) turtle.circle(-20, 110) turtle.circle(15, 115) turtle.circle(100, 12) turtle.circle(15, 120) turtle.circle(-15, 110) turtle.circle(-150, 30) turtle.circle(-15, 70) turtle.circle(-150, 10) turtle.circle(200, 35) turtle.circle(-150, 20) turtle.setheading(-120) turtle.circle(50, 30) turtle.circle(-35, 200) turtle.circle(-300, 23) turtle.setheading(86) turtle.circle(-300, 26) turtle.setheading(122) turtle.circle(-53, 160) turtle.end_fill() turtle.penup() turtle.goto(-130, 180) turtle.pencolor("black") turtle.pensize(1) turtle.fillcolor("black") turtle.begin_fill() turtle.pendown() turtle.setheading(120) turtle.circle(-28, 160) turtle.setheading(210) turtle.circle(150, 20) turtle.end_fill() turtle.penup() turtle.goto(90, 230) turtle.setheading(40) turtle.begin_fill() turtle.pendown() turtle.circle(-30, 170) turtle.setheading(125) turtle.circle(150, 23) turtle.end_fill() turtle.penup() turtle.goto(-180, -55) turtle.fillcolor("black") turtle.begin_fill() turtle.setheading(-120) turtle.pendown() turtle.circle(50, 30) turtle.circle(-27, 200) turtle.circle(-300, 20) turtle.setheading(-90) turtle.circle(300, 14) turtle.end_fill() turtle.penup() turtle.goto(108, -168) turtle.fillcolor("black") turtle.begin_fill() turtle.pendown() turtle.setheading(-115) turtle.circle(110, 15) turtle.circle(200, 10) turtle.circle(-18, 80) turtle.circle(-180, 13) turtle.circle(-20, 90) turtle.circle(15, 60) turtle.setheading(42) turtle.circle(-200, 29) turtle.end_fill() turtle.penup() turtle.goto(-38, -210) turtle.fillcolor("black") turtle.begin_fill() turtle.pendown() turtle.setheading(-155) turtle.circle(15, 100) turtle.circle(-10, 110) turtle.circle(-100, 30) turtle.circle(-15, 65) turtle.circle(-100, 10) turtle.circle(200, 15) turtle.setheading(-14) turtle.circle(-200, 27) turtle.end_fill()
turtle.penup() turtle.goto(-64, 120) turtle.begin_fill() turtle.pendown() turtle.setheading(40) turtle.circle(-35, 152) turtle.circle(-100, 50) turtle.circle(-35, 130) turtle.circle(-100, 50) turtle.end_fill() turtle.penup() turtle.goto(-47, 55) turtle.fillcolor("white") turtle.begin_fill() turtle.pendown() turtle.setheading(0) turtle.circle(25, 360) turtle.end_fill() turtle.penup() turtle.goto(-45, 62) turtle.pencolor("darkslategray") turtle.fillcolor("darkslategray") turtle.begin_fill() turtle.pendown() turtle.setheading(0) turtle.circle(19, 360) turtle.end_fill() turtle.penup() turtle.goto(-45, 68) turtle.fillcolor("black") turtle.begin_fill() turtle.pendown() turtle.setheading(0) turtle.circle(10, 360) turtle.end_fill() turtle.penup() turtle.goto(-47, 86) turtle.pencolor("white") turtle.fillcolor("white") turtle.begin_fill() turtle.pendown() turtle.setheading(0) turtle.circle(5, 360) turtle.end_fill() turtle.penup() turtle.goto(51, 82) turtle.fillcolor("black") turtle.begin_fill() turtle.pendown() turtle.setheading(120) turtle.circle(-32, 152) turtle.circle(-100, 55) turtle.circle(-25, 120) turtle.circle(-120, 45) turtle.end_fill() turtle.penup() turtle.goto(79, 60) turtle.fillcolor("white") turtle.begin_fill() turtle.pendown() turtle.setheading(0) turtle.circle(24, 360) turtle.end_fill() turtle.penup() turtle.goto(79, 64) turtle.pencolor("darkslategray") turtle.fillcolor("darkslategray") turtle.begin_fill() turtle.pendown() turtle.setheading(0) turtle.circle(19, 360) turtle.end_fill() turtle.penup() turtle.goto(79, 70) turtle.fillcolor("black") turtle.begin_fill() turtle.pendown() turtle.setheading(0) turtle.circle(10, 360) turtle.end_fill() turtle.penup() turtle.goto(79, 88) turtle.pencolor("white") turtle.fillcolor("white") turtle.begin_fill() turtle.pendown() turtle.setheading(0) turtle.circle(5, 360) turtle.end_fill() turtle.penup() turtle.goto(37, 80) turtle.fillcolor("black") turtle.begin_fill() turtle.pendown() turtle.circle(-8, 130) turtle.circle(-22, 100) turtle.circle(-8, 130) turtle.end_fill() turtle.penup() turtle.goto(-15, 48) turtle.setheading(-36) turtle.begin_fill() turtle.pendown() turtle.circle(60, 70) turtle.setheading(-132) turtle.circle(-45, 100) turtle.end_fill()
turtle.penup() turtle.goto(-135, 120) turtle.pensize(5) turtle.pencolor("cyan") turtle.pendown() turtle.setheading(60) turtle.circle(-165, 150) turtle.circle(-130, 78) turtle.circle(-250, 30) turtle.circle(-138, 105) turtle.penup() turtle.goto(-131, 116) turtle.pencolor("slateblue") turtle.pendown() turtle.setheading(60) turtle.circle(-160, 144) turtle.circle(-120, 78) turtle.circle(-242, 30) turtle.circle(-135, 105) turtle.penup() turtle.goto(-127, 112) turtle.pencolor("orangered") turtle.pendown() turtle.setheading(60) turtle.circle(-155, 136) turtle.circle(-116, 86) turtle.circle(-220, 30) turtle.circle(-134, 103) turtle.penup() turtle.goto(-123, 108) turtle.pencolor("gold") turtle.pendown() turtle.setheading(60) turtle.circle(-150, 136) turtle.circle(-104, 86) turtle.circle(-220, 30) turtle.circle(-126, 102) turtle.penup() turtle.goto(-120, 104) turtle.pencolor("greenyellow") turtle.pendown() turtle.setheading(60) turtle.circle(-145, 136) turtle.circle(-90, 83) turtle.circle(-220, 30) turtle.circle(-120, 100) turtle.penup()
turtle.penup() turtle.goto(-5, -170) turtle.pensize(1) turtle.pendown() turtle.pencolor("blue") turtle.circle(6) turtle.penup() turtle.goto(10, -170) turtle.pendown() turtle.pencolor("black") turtle.circle(6) turtle.penup() turtle.goto(25, -170) turtle.pendown() turtle.pencolor("brown") turtle.circle(6) turtle.penup() turtle.goto(2, -175) turtle.pendown() turtle.pencolor("lightgoldenrod") turtle.circle(6) turtle.penup() turtle.goto(16, -175) turtle.pendown() turtle.pencolor("green") turtle.circle(6) turtle.penup() turtle.pencolor("black") turtle.goto(-16, -160) turtle.write("BEIJING 2022", font=('Arial', 10, 'bold italic')) turtle.hideturtle()
最後(別忘記還有一個結束)
turtle.done()
到此這篇關於使用python的turtle庫畫一個冰墩墩效果的文章就介紹到這了,更多相關python的turtle庫畫冰墩墩內容請搜尋it145.com以前的文章或繼續瀏覽下面的相關文章希望大家以後多多支援it145.com!
相關文章
<em>Mac</em>Book项目 2009年学校开始实施<em>Mac</em>Book项目,所有师生配备一本<em>Mac</em>Book,并同步更新了校园无线网络。学校每周进行电脑技术更新,每月发送技术支持资料,极大改变了教学及学习方式。因此2011
2021-06-01 09:32:01
综合看Anker超能充系列的性价比很高,并且与不仅和iPhone12/苹果<em>Mac</em>Book很配,而且适合多设备充电需求的日常使用或差旅场景,不管是安卓还是Switch同样也能用得上它,希望这次分享能给准备购入充电器的小伙伴们有所
2021-06-01 09:31:42
除了L4WUDU与吴亦凡已经多次共事,成为了明面上的厂牌成员,吴亦凡还曾带领20XXCLUB全队参加2020年的一场音乐节,这也是20XXCLUB首次全员合照,王嗣尧Turbo、陈彦希Regi、<em>Mac</em> Ova Seas、林渝植等人全部出场。然而让
2021-06-01 09:31:34
目前应用IPFS的机构:1 谷歌<em>浏览器</em>支持IPFS分布式协议 2 万维网 (历史档案博物馆)数据库 3 火狐<em>浏览器</em>支持 IPFS分布式协议 4 EOS 等数字货币数据存储 5 美国国会图书馆,历史资料永久保存在 IPFS 6 加
2021-06-01 09:31:24
开拓者的车机是兼容苹果和<em>安卓</em>,虽然我不怎么用,但确实兼顾了我家人的很多需求:副驾的门板还配有解锁开关,有的时候老婆开车,下车的时候偶尔会忘记解锁,我在副驾驶可以自己开门:第二排设计很好,不仅配置了一个很大的
2021-06-01 09:30:48
不仅是<em>安卓</em>手机,苹果手机的降价力度也是前所未有了,iPhone12也“跳水价”了,发布价是6799元,如今已经跌至5308元,降价幅度超过1400元,最新定价确认了。iPhone12是苹果首款5G手机,同时也是全球首款5nm芯片的智能机,它
2021-06-01 09:30:45