日韩久久久精品,亚洲精品久久久久久久久久久,亚洲欧美一区二区三区国产精品 ,一区二区福利

當(dāng)一個(gè)學(xué)了20分鐘python turtle 的人畫滑稽會(huì)怎樣

系統(tǒng) 1699 0

?

python 3.7?

鏈接:https://pan.baidu.com/s/1Lob447oqCgD6nb39sB9cig?
提取碼:vn0a?
?

pycharm

鏈接:https://pan.baidu.com/s/1BndDvTG1hPnBmq5leu3gDQ?
提取碼:3jus?
?

#huaji
import turtle as t
#-------------臉
t.setup(960,959,0,0)
t.color("orange")
t.pensize("25")
t.penup()
t.goto(-300,0)
t.pendown()
t.left(90)
t.fillcolor("yellow")
t.begin_fill ()
t.circle(-300)
t.end_fill ()


#-----------嘴-----------
t.penup()
t.goto(-220,-10)
t.seth(90)
for i in range(90):
? ? t.pensize(4+0.15*i)
? ? t.color("brown")
? ? t.pendown()
? ? t.circle(-220,-1)
for i in range(90):
? ? t.pensize(17.5-0.15*i)
? ? t.color("brown")
? ? t.pendown()
? ? t.circle(-220,-1)


?#------------左眼--------------- ??
t.penup()
t.goto(-80,150)
t.color("orange")
t.pensize("25")
t.seth(90)
t.pendown()
t.left(50)
t.circle(200,80)
t.seth(270)
t.circle(200,15)

t.penup()
t.goto(-70,90)
t.color("orange")
t.pensize("25")
t.seth(90)
t.pendown()
t.left(50)
t.circle(200,65)
t.left(10)
t.circle(200,10)

t.penup()
t.goto(-70,150)
t.seth(270)
t.pendown()
t.circle(-200,15)

#-------------右眼----------------


t.penup()
t.goto(70,150)
t.color("orange")
t.pensize("25")
t.seth(90)
t.pendown()
t.right(50)
t.circle(-200,80)
t.seth(270)
t.circle(-200,15)

t.penup()
t.goto(70,90)
t.seth(90)
t.pendown()
t.right(50)
t.circle(-200,65)
t.right(10)
t.circle(200,10)

t.penup()
t.goto(70,150)
t.seth(270)
t.pendown()
t.circle(200,15)

t.penup()
t.pensize(5)
t.color("black")
t.goto(-300,125)
t.pendown()
t.seth(0)
t.fillcolor('black')
t.begin_fill()
t.circle(15,360)
t.end_fill()

t.penup()
t.pensize(5)
t.color("black")
t.goto(100,120)
t.pendown()
t.seth(0)
t.fillcolor('black')
t.begin_fill()
t.circle(15,360)
t.end_fill()


#----------左眉毛-----------------
t.penup()
t.goto(-70,200)
t.color("black")
t.pensize("25")
t.seth(90)
t.pendown()
t.left(30)
t.circle(200,60)


#----------右眉毛-----------------
t.penup()
t.goto(70,200)
t.color("black")
t.pensize("25")
t.seth(90)
t.pendown()
t.right(30)
t.circle(-200,60)


#---------左紅-------------------
t.penup()
t.color("red")
t.goto(150,20)
t.pendown()
t.fillcolor ("red")
t.begin_fill ()
t.circle(20)
t.end_fill ()

#---------右紅----------------
t.penup()
t.color("red")
t.goto(-180,20)
t.pendown()
t.fillcolor ("red")
t.begin_fill ()
t.circle(20)
t.end_fill ()


t.done()

效果圖

?

當(dāng)一個(gè)學(xué)了20分鐘python turtle 的人畫滑稽會(huì)怎樣_第1張圖片


?


更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號(hào)聯(lián)系: 360901061

您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺(jué)我的文章對(duì)您有幫助,請(qǐng)用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長(zhǎng)非常感激您!手機(jī)微信長(zhǎng)按不能支付解決辦法:請(qǐng)將微信支付二維碼保存到相冊(cè),切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對(duì)您有幫助就好】

您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺(jué)我的文章對(duì)您有幫助,請(qǐng)用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長(zhǎng)會(huì)非常 感謝您的哦!!!

發(fā)表我的評(píng)論
最新評(píng)論 總共0條評(píng)論
主站蜘蛛池模板: 莎车县| 唐河县| 昌都县| 五寨县| 射阳县| 丹阳市| 许昌县| 错那县| 玉屏| 太谷县| 游戏| 四子王旗| 莒南县| 玉门市| 固始县| 米脂县| 镇巴县| 宁国市| 洪泽县| 广汉市| 衡水市| 商河县| 化德县| 仪陇县| 沙洋县| 金沙县| 敦化市| 夏津县| 宽城| 综艺| 太原市| 通海县| 萨迦县| 开化县| 内乡县| 兴文县| 海兴县| 班玛县| 怀仁县| 澳门| 芒康县|