用户注册



邮箱:

密码:

用户登录


邮箱:

密码:
记住登录一个月忘记密码?

发表随想


还能输入:200字

云代码会员    -  云代码空间

——

红灯变绿灯

2021-12-01|425阅||

摘要:import turtle import time light = turtle.Turtle() light.hideturtle() light.screen.delay(0) light.color("red", "red")

import turtle
import time
light = turtle.Turtle()
light.hideturtle()
light.screen.delay(0)
light.color("red", "red")
light.begin_fill()
light.circle(100)
light.end_fill()
time.sleep(1)
light.color("green", "green")
light.begin_fill()
light.circle(100)
light.end_fill()
time.sleep(1)
light.color("yellow", "yellow")
light.begin_fill()
light.circle(100)
light.end_fill()
time.sleep(1)
顶 0踩 0收藏
文章评论
    发表评论

    个人资料

    • 昵称: 云代码会员
    • 等级: 初级程序员
    • 积分: 0
    • 代码: 2 个
    • 文章: 1 篇
    • 随想: 0 条
    • 访问: 1 次
    • 关注

    人气文章

    人气代码

    标签

    最新提问

      站长推荐