170行代码,画CSDN的LOGO
原创,全部基础语句,0抄袭。
部分代码如下,完整代码私信即可。
# -- coding: utf-8 --
import turtle as t
t.setup(width=700,height=500, startx=100, starty=100)
t.speed(10)
t.hideturtle()
"""
头外轮廓
"""
t.penup()
t.goto(-135,130)
t.circle(-125,10)
t.pendown()
t.fillcolor('#A0522D')
t.begin_fill()
t.circle(-125,340)
……
t.pensize(1)
t.penup()
t.goto(-155,-35)
t.pendown()
t.fillcolor('#8B5A00')
t.begin_fill()
t.circle(5)
t.penup()
t.goto(-135,-35)
t.pendown()
t.circle(5)
t.end_fill()
……
效果图如下