找回密码
 中文实名注册
搜索
查看: 970|回复: 2

倪仲帅

[复制链接]

9

主题

35

回帖

1905

积分

金牌会员

积分
1905
发表于 2024-1-13 14:44:35 | 显示全部楼层 |阅读模式

import random

import turtle
turtle.setup(800,600)
tutu = turtle.Turtle()
tutu.speed(0)
turtle.colormode(255)

def draw_circle(r):
    R = random.randint(0,255)
    G = random.randint(0, 255)
    B = random.randint(0, 255)
    tutu.fillcolor(R,G,B)
    tutu.begin_fill()
    tutu.circle(r)
    tutu.end_fill()
   
r = 120
for i in range(36):
    draw_circle(r)
    r = r -3
    tutu.left(25)
turtle.done()


回复

使用道具 举报

2

主题

23

回帖

720

积分

高级会员

积分
720
发表于 2024-3-2 15:22:36 | 显示全部楼层
回复

使用道具 举报

4

主题

16

回帖

605

积分

高级会员

积分
605
发表于 2024-4-6 13:58:11 | 显示全部楼层
楼主其实叫Peter,我是他同学。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 中文实名注册

本版积分规则

快速回复 返回顶部 返回列表