日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 人文社科 > 生活经验 >内容正文

生活经验

python画图程序飞机_Python海龟画图工具绘制叮当猫程序

發布時間:2023/11/27 生活经验 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 python画图程序飞机_Python海龟画图工具绘制叮当猫程序 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

t.fillcolor("blue")#填充顏色

t.begin_fill()#開始填充

t.circle(160)#畫圓

t.end_fill()#結束填充

t.up() #鼠標抬起

t.goto(-20,240)#重新調整畫筆的位置

t.down()#鼠標落下

#畫叮當貓。

import turtle;

t=turtle.Pen()

#畫頭

t.fillcolor("blue")

t.begin_fill()

t.circle(160)

t.end_fill()

#畫臉

t.fillcolor("white")

t.begin_fill()

t.circle(130)

t.end_fill()

#畫眼睛

t.up()

t.goto(-20,240)#第一只眼睛(左)

t.down()

t.fillcolor("#fff")

t.begin_fill()

t.circle(20)

t.up()

t.goto(20,240)#第二只眼睛

t.down()

t.circle(20)

t.end_fill()

#畫里面的眼珠黑色部分

t.fillcolor("black")

t.begin_fill()

t.circle(10)

t.up()

t.goto(-20,240)

t.down()

t.circle(10)

t.end_fill()

#畫鼻子

t.up()

t.goto(0,200)

t.down()

t.fillcolor("red")

t.begin_fill()

t.circle(20)

t.end_fill()

t.right(90)

t.forward(70)

#畫嘴巴

t.up()

t.goto(-50,100)

t.down()

t.circle(50,180)

#畫胡子

t.up()

t.goto(20,150)

t.down()

t.right(100)

t.forward(80)

t.up()

t.goto(20,180)

t.down()

t.left(30)

t.forward(80)

t.up()

t.goto(20,160)

t.down()

t.left(-10)

t.forward(80)

#畫左邊胡子

t.up()

t.goto(-20,160)

t.down()

t.right(180)

t.forward(80)

t.up()

t.goto(-20,180)

t.down()

t.right(20)

t.forward(80)

t.up()

t.goto(-20,150)

t.down()

t.right(-40)

t.forward(80)

t.up()

t.goto(0,-50)

t.write("Python青少年編程 .13684090437何老師 ", align="center",font=("微軟雅黑", 16, "bold"))

t.write("https://edu.51cto.com/course/17675.html ", align="center",font=("微軟雅黑", 16, "bold"))

turtle.done()

原文地址:https://blog.51cto.com/1388969/2421974

總結

以上是生活随笔為你收集整理的python画图程序飞机_Python海龟画图工具绘制叮当猫程序的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。