根据水滴的参数方程画水滴的源代码
"""画水滴图形"""
import math
from turtle import *
tom = Turtle(visible=False)
tom.penup()
tom.screen.delay(0)
n=1.5 # 修改n的值能有不同胖瘦的水滴
for t in range(0,360):
c = math.radians(t)
x = 100 * math.cos(c)
y = 100 * math.sin(c) * pow(math.sin(c/2),n)
tom.goto(y,x)
tom.dot(5,'blue')
