from turtle import*
bgcolor("black")
colors=["yellow","orange","green","red","blue","pink","purple"]
speed(0)
for i in range(0,150):
    pencolor(colors[i%4])
    penup()
    forward(i*4)
    pendown()
    write("奋斗",font=("微软雅黑",int(i/4+4)))
    left(92)
hideturtle()
字体不仅有微软雅黑,还有腾翔铁山楷书,幼圆等字体
如果在运行中出现问题,欢迎在下方

文章内容属作者个人观点,不代表本站立场,如有侵权立删。

   口袋儿题库-青少儿编程自测题库