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

倪仲帅

[复制链接]

5

主题

21

帖子

1038

积分

金牌会员

Rank: 6Rank: 6

积分
1038
发表于 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

帖子

1029

积分

金牌会员

Rank: 6Rank: 6

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

使用道具 举报

5

主题

21

帖子

292

积分

中级会员

Rank: 3Rank: 3

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

使用道具 举报

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

本版积分规则

小黑屋|东台市机器人学会 ( 苏ICP备2021035350号-1;苏ICP备2021035350号-2;苏ICP备2021035350号-3 )

GMT+8, 2024-4-27 21:15 , Processed in 0.048352 second(s), 28 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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