我已经准备好了一段烟花代码:import turtle import random # 画布大小 screen = turtle.Screen() screen.setup(800, 600) screen.bgcolor("black")# 画笔颜色 turtle.colormode(255) # 画笔 t = turtle.Pen() t.hideturtle() t.speed(0)# 循环 for i in range(50): # 随机颜色 r = random.randint(0, 255) g = random.randint(0,
用python写个烟花代码
最新推荐文章于 2024-02-27 15:50:03 发布