📅  最后修改于: 2022-03-11 14:46:32.358000             🧑  作者: Mango
from turtle import speed, goto
from math import cos, sin, pi
def c(n):
speed('fastest')
for i in range(n):
goto(200*cos(2*pi*i/n), 200*sin(2*pi*i/n))
goto(200*cos(2*pi*((2*i)%n)/n), 200*sin(2*pi*((2*i)%n)/n))
c(100)