- 博客(1)
- 收藏
- 关注
原创 流星雨源码
colors = ['skyblue','white','cyan','aqua'] #流星的颜色列表。self.x = ra.randint(-2000,1000) #流星的横坐标。self.speed = ra.randint(5,10) #流星移动速度。self.color = ra.choice(colors) #流星的颜色。self.y = ra.randint(0,500) #流星的纵坐标。t.goto(self.x,self.y) #随机位置。
2023-09-08 10:25:41 136 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人