Python
a=int(input("开始粗细")) c=int(input("每次加粗")) import turtle as t n=int(input ("几边形"))#input输入字符;int整数 b=int(input ("转多少次")) for i in range(b): for i in range(n): a=int(a+c) t.forward(a) t.left(360/n)