📜  如何在python代码示例中绘制shell

📅  最后修改于: 2022-03-11 14:46:49.694000             🧑  作者: Mango

代码示例1
import turtle as t
import math
n = 1
size = 25
t.speed(0)
for x in range(16):
    t.fd(size*n)
    t.lt(90)
    t.fd(size)
    n = math.sqrt((n**2)+1)
    t.lt(180 - math.degrees(math.acos(1/n)))
    t.fd(size*n)
    t.lt(180)