第一个程序,蟒蛇
# PythonDraw.py
import turtle as t
t.setup(650, 350, 200, 200)
t.penup()
t.fd(-250)
t.pendown()
t.pensize(25)
t.pencolor("purple")
t.seth(-40)
for i in range(4):
t.circle(40, 80)
t.circle(-40, 80)
t.pencolor('black')
t.pencolor('red')
t.circle(40, 80 / 2)
t.fd(100)
t.circle(16, 180)
t.fd(300 * 2 / 3)
t.done()

浙公网安备 33010602011771号