python绘制实心圆

  • Post author:
  • Post category:python


from turtle import *
import random

def dots(colors,radius):
    color(colors)
    dot(radius)
    
colors = ["grey","yellow","green","red","blue","black","pink","white"]
for i in range(600,20,-40):
    print(i)
    color(colors[random.randint(0,7)])
    dot(i)

在这里插入图片描述

在这里插入图片描述



版权声明:本文为qq_43596960原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。