机器人
积分排行榜
Scratch
积分排行榜
Python
在线答题
积分排行榜
活跃排行榜
打字练习
Microbit
C++
在线答题
积分排行榜
活跃排行榜
网盘
积分
未登录
未登录
登录学习
作者:
杨辰
更新时间:
2025-07-17 16:11
浏览:
4次
点赞:
1次
热度:
20
import turtle as t import random def w(b,yan): x=random.randint(-300,300) y=random.randint(-200,200) t.penup() t.goto(x,y) t.color(yan) t.pendown() for i in range(5): t.fd(b) t.left(144) c = ["red","green","blue","yellow","black","orange","purple"] for i in range(100): r = random.choice(c) d= random.randint(1,100) w(d,r)
点赞成功
分享作品
×