《Python蟒蛇绘制源代码.docx》由会员分享,可在线阅读,更多相关《Python蟒蛇绘制源代码.docx(1页珍藏版)》请在课桌文档上搜索。
#PythonDraw.pyimportturtleturtle.setup(650,350,200,200)turtle.penup()turtle.fd(-250)turtle.pendow()turtle.pesize(25)turtle.pencolor(purple)turtle.seth(-40)foriinrange(4):turtle.circle(40180)turtle.circle(-40,80)turtle.circle(40t80/2)turtle.fd(40)turtle.circle(16,180)turtle.fd(40*2/3)turtle.done()