python Turtle画图,恶搞

python Turtle恶搞小程序

话不多说,上代码:

import turtle as t
t.pensize(4)
t.hideturtle()
t.colormode(255)
t.color((0,0,0), "black")
t.setup(600, 600)
t.speed(3)
t.setx(-130)
t.goto(-110,110)
t.goto(-90,110)
t.goto(-100,30)
t.goto(-90,125)
t.goto(-70,125)
t.goto(-70,43)
t.goto(-70,200)
t.goto(-50,200)
t.goto(-50,43)
t.goto(-50,125)
t.goto(-30,125)
t.goto(-10,30)
t.goto(-30,110)
t.goto(10,110)
t.goto(30,0)
t.goto(120,-180)
t.goto(90,-180)
t.goto(-50,0)
t.end_fill()
t.exitonclick()

本人画技很拙劣,只能画出这个来了,部分地方也不到位
但也算是我的Turtle首秀了。。。。。
不说了,医院的网络挺好的

你可能感兴趣的:(笔记)