2.1 深入理解Python语言
2.2 实例2: Python蟒蛇绘制
#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.circle(40,80/2)
t.fd(40)
t.circle(16, 180)
t.fd(40 * 2/3)
t.done()