python
import output06th
output06th.drawLineDo()
turtle.done()
在output06th.py中的代码
python
import turtle
import math
def drawLineDo():
turtle.speed(40)
turtle.penup()
turtle.goto(-175, 50 * math.sin((-175 / 100 * 2 * math.pi)))
turtle.pendown()
for x in range(-175, 176):
turtle.goto(x, 50 * math.sin((x / 100 * 2 * math.pi)))
turtle.penup()
turtle.goto(-300, 0)
turtle.pendown()
turtle.goto(300, 0)
turtle.penup()
turtle.goto(0, 300)
turtle.pendown()
turtle.goto(0, -300)
turtle.penup()
turtle.goto(-100, -15)
turtle.write("-2\u03c0")
turtle.goto(100, -15)
turtle.write("2\u03c0")
turtle.hideturtle()
turtle.done()