大家好,又见面了,我是你们的朋友全栈君。
实例:绘制蟒蛇
# PythonDraw. py
import turtle
turtle. setup(650,350,200,200)
turtle. penup()
turtle. fd(-250)
turtle. pendown()
turtle. pensize(25)
turtle. pencolor("purple")
turtle. seth(-40)
for i in range(4):
turtle. circle(40,80)
turtle. circle(-40,80)
turtle. circle(40,80/2)
turtle. fd(40)
turtle. circle(16,180)
turtle. fd(40*2/3)
turtle. done()
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/167008.html原文链接:https://javaforall.cn