Using the program to draw, you can get very standard graphics, let's take a look at the picture effect below.
import turtle as t
import time
b=t.Pen()
for x in range(1,20):
b.forward(100)
b.right(170)
time.sleep(3)
After execution, you will get the following graph
Modify a few parameters to get the following picture
import turtle as t
import time
b=t.Pen()
for x in range(1,40):
b.forward(200)
b.right(95)
time.sleep(5)
Enter the code below to see the image below
import turtle as t
import time
b=t.Pen()
for x in range(1,500):
b.forward(x)
b.right(91)
time.sleep(5)
Execute this code, you can see the picture below, want to know how he draws it?
import turtle as t
import time
b=t.Pen()
for x in range(1,37):
b.forward(100)
b.left(90)
b.forward(100)
b.left(90)
b.forward(100)
b.left(90)
b.forward(100)
b.left(100)
time.sleep(5)
About turtle drawing, you need to know the following parameters:
——————————————
How to receive python welfare tutorial:
1. Like + comment (check "Retweet at the same time")
2. Follow the editor. And private message reply keyword [19]
(be sure to private message ~ click on my avatar to see the private message button)