import turtle
t=turtle.Pen()
turtle.screensize(canvwidth=1200,canvheight=1200,bg=‘black’)
colors=[“red”,“green”,“blue”,“purple”,“pink”]
t.penup()
for x in range(100):
t.write(“max”,font=(‘Arial’,int((x+5)/5),‘bold’))
t.pencolor(colors[x%5])
t.forward(x*3)
t.left(75)
** 解析**
for循环做环状图形
图形展示
for循环做环状图形

相关文章:

  • 2022-12-23
  • 2021-09-09
  • 2022-12-23
  • 2021-05-03
  • 2021-12-25
  • 2021-07-27
  • 2022-02-22
猜你喜欢
  • 2022-12-23
  • 2021-08-01
  • 2021-10-28
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2022-12-23
相关资源
相似解决方案