国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

用python畫的蠟筆小新

2019-07-25 10:40 作者:這個騷年很可耐  | 我要投稿

代碼內(nèi)容如下:

這里要導入一個turtle庫,關于此庫的函數(shù)用法在本站的北京理工大學嵩天老師python課程的第二章里有所介紹,在此不一一贅述。

import turtle as t

t.setup(650,300,200,200)

t.pu()

t.fd(250)

t.seth(90)

t.pd()

t.pensize(10)

t.pencolor('black')

#臉部輪廓

t.begin_fill()

t.color('moccasin')

t.circle(200,180)

t.seth(-180)

t.circle(100,180)

t.fd(50)

t.circle(500,40)


#畫耳朵

t.seth(-90)

t.circle(55,45)

t.seth(90)

t.seth(30)

t.fd(45)

t.seth(360)

t.circle(55,255)

t.end_fill()

#畫嘴巴

t.pu()

t.goto(-120,-100)

t.pensize(1)

t.begin_fill()

t.color('red')

t.circle(35,360)

t.end_fill()

#畫左眼

t.goto(-75,50)

t.begin_fill()

t.color('black')

t.pd()

t.circle(35,360)

t.end_fill()


#畫左眼眼白

t.goto(-65,50)

t.begin_fill()

t.color('white')

t.circle(16.5,360)

t.end_fill()


#右眼

t.pu()

t.goto(45,50)

t.begin_fill()

t.color('black')

t.pd()

t.circle(35,360)

t.end_fill()


#畫右眼眼白

t.goto(55,50)

t.begin_fill()

t.color('white')

t.circle(16.5,360)

t.end_fill()


#畫眉毛

t.pu()

t.seth(90)

t.goto(5,70)

t.pensize(1)

t.pencolor('black')

t.pd()

t.circle(45,180)


t.pu()

t.seth(90)

t.goto(5,110)

t.pensize(15)

t.pencolor('black')

t.pd()

t.circle(45,180)


t.pu()

t.seth(90)

t.goto(125,70)

t.pensize(1)

t.pencolor('black')

t.pd()

t.circle(45,180)


t.pu()

t.seth(90)

t.goto(125,110)

t.pensize(15)

t.pencolor('black')

t.pd()

t.circle(45,180)


#畫頭發(fā)

t.pu()

t.goto(255,25)

t.seth(90)

t.pd()

t.pensize(10)

t.begin_fill()

t.color('black')

t.circle(200,120)

t.seth(-15)

t.fd(280)

t.seth(-90)

t.fd(100)

t.seth(360)

t.fd(25)

t.end_fill()

個人感覺還是有所欠缺,因此還希望大佬多多指正!

用python畫的蠟筆小新的評論 (共 條)

分享到微博請遵守國家法律
芮城县| 海林市| 宁国市| 临泉县| 康定县| 开原市| 文登市| 蓝山县| 阆中市| 萨迦县| 会昌县| 安龙县| 同仁县| 芜湖县| 侯马市| 崇仁县| 陇南市| 武平县| 雷州市| 怀安县| 临安市| 五常市| 蒙城县| 丰都县| 福鼎市| 沙坪坝区| 寻甸| 新营市| 同江市| 江孜县| 电白县| 双辽市| 怀仁县| 宁海县| 西丰县| 洪洞县| 大同市| 莒南县| 延津县| 福建省| 凤翔县|