# turtle库绘制圆_Python绘画：应用Turtle库绘制“抖音艺术字”

import turtle# 设置画笔的大小turtle.pensize(10)turtle.pencolor("black")# 第一条直线turtle.penup()turtle.goto(-50,180)turtle.pendown()turtle.goto(50,180)# 第二条直线turtle.penup()turtle.goto(-75,90)turtle.pendown()turtle.goto(75,90)# 第三条直线turtle.penup()turtle.goto(-100,0)turtle.pendown()turtle.goto(100,0)# 第四条直线turtle.penup()turtle.goto(-125,-90)turtle.pendown()turtle.goto(125,-90)# 第五条直线turtle.penup()turtle.goto(-125,-180)turtle.pendown()turtle.goto(125,-180)

# 绘制两个长方形turtle.penup()turtle.goto(-50,180)turtle.pendown()turtle.goto(-50,90)turtle.penup()turtle.goto(0,180)turtle.pendown()turtle.goto(0,90)turtle.penup()turtle.goto(50,180)turtle.pendown()turtle.goto(50,90)# 绘制三个长方形turtle.penup()turtle.goto(-75,90)turtle.pendown()turtle.goto(-75,0)turtle.penup()turtle.goto(-25,90)turtle.pendown()turtle.goto(-25,0)turtle.penup()turtle.goto(25,90)turtle.pendown()turtle.goto(25,0)turtle.penup()turtle.goto(75,90)turtle.pendown()turtle.goto(75,0)# 绘制四个长方形turtle.penup()turtle.goto(-100,0)turtle.pendown()turtle.goto(-100,-90)turtle.penup()turtle.goto(-50,0)turtle.pendown()turtle.goto(-50,-90)turtle.penup()turtle.goto(0,0)turtle.pendown()turtle.goto(0,-90)turtle.penup()turtle.goto(50,0)turtle.pendown()turtle.goto(50,-90)turtle.penup()turtle.goto(100,0)turtle.pendown()turtle.goto(100,-90)# 绘制五个长方形turtle.penup()turtle.goto(-125,-90)turtle.pendown()turtle.goto(-125,-180)turtle.penup()turtle.goto(-75,-90)turtle.pendown()turtle.goto(-75,-180)turtle.penup()turtle.goto(-25,-90)turtle.pendown()turtle.goto(-25,-180)turtle.penup()turtle.goto(25,-90)turtle.pendown()turtle.goto(25,-180)turtle.penup()turtle.goto(75,-90)turtle.pendown()turtle.goto(75,-180)turtle.penup()turtle.goto(125,-90)turtle.pendown()turtle.goto(125,-180)

turtle.penup()turtle.goto(-50,150)turtle.pendown()turtle.goto(-25,150)turtle.penup()turtle.goto(-25,120)turtle.pendown()turtle.goto(0,120)turtle.penup()turtle.goto(25,150)turtle.pendown()turtle.goto(25,120)turtle.penup()turtle.goto(-75,30)turtle.pendown()turtle.goto(-50,30)turtle.penup()turtle.goto(-50,60)turtle.pendown()turtle.goto(0,60)turtle.penup()turtle.goto(0,30)turtle.pendown()turtle.goto(25,30)turtle.penup()turtle.goto(50,60)turtle.pendown()turtle.goto(50,30)turtle.penup()turtle.goto(-75,-20)turtle.pendown()turtle.goto(-75,-30)turtle.penup()turtle.goto(-100,-50)turtle.pendown()turtle.goto(-75,-50)turtle.goto(-75,-70)turtle.penup()turtle.goto(-25,0)turtle.pendown()turtle.goto(-25,-55)turtle.penup()turtle.goto(-50,-80)turtle.pendown()turtle.goto(-25,-80)turtle.penup()turtle.goto(-4,0)turtle.pendown()turtle.goto(-4,-55)turtle.penup()turtle.goto(-4,-80)turtle.pendown()turtle.goto(-4,-90)turtle.penup()turtle.goto(0,-30)turtle.pendown()turtle.goto(25,-30)turtle.penup()turtle.goto(25,-60)turtle.pendown()turtle.goto(50,-60)turtle.penup()turtle.goto(75,-30)turtle.pendown()turtle.goto(75,-60)turtle.penup()turtle.goto(-125,-150)turtle.pendown()turtle.goto(-100,-150)turtle.penup()turtle.goto(-100,-120)turtle.pendown()turtle.goto(-75,-120)turtle.penup()turtle.goto(-50,-110)turtle.pendown()turtle.goto(-50,-120)turtle.penup()turtle.goto(-75,-145)turtle.pendown()turtle.goto(-50,-145)turtle.goto(-50,-165)turtle.penup()turtle.goto(0,-90)turtle.pendown()turtle.goto(0,-145)turtle.penup()turtle.goto(-25,-170)turtle.pendown()turtle.goto(0,-170)turtle.penup()turtle.goto(21,-90)turtle.pendown()turtle.goto(21,-145)turtle.penup()turtle.goto(21,-170)turtle.pendown()turtle.goto(21,-180)turtle.penup()turtle.goto(25,-120)turtle.pendown()turtle.goto(50,-120)turtle.penup()turtle.goto(50,-150)turtle.pendown()turtle.goto(75,-150)turtle.penup()turtle.goto(100,-120)turtle.pendown()turtle.goto(100,-150)turtle.penup()turtle.goto(200,-250)turtle.hideturtle()

1.如果觉得还可以，记得点击右上角的关注，随手点个转发让更多人看到哦。

2.如果你对Python感兴趣，我为你准备了一些Python教程，私信「python」领取。

3.本文的代码复制可以，可能还需要你手动换一下行。

01-03 4万+
12-31
05-30 2万+
08-02 49万+
12-30
09-28
06-13