找回密码
 中文实名注册
查看: 234|回复: 0

turtle第6章奥运五环

[复制链接]

9

主题

28

帖子

722

积分

高级会员

Rank: 4

积分
722
发表于 2023-7-23 17:14:27 | 显示全部楼层 |阅读模式
import turtle
turtle.penup()
turtle.pensize(10)
turtle.goto(-100,100)
turtle.pendown()
turtle.color('blue')
turtle.circle(-50)
turtle.penup()
turtle.goto(20,100)
turtle.pendown()
turtle.color("black")
turtle.circle(-50)
turtle.penup()
turtle.goto(140,100)
turtle.pendown()
turtle.color("red")
turtle.circle(-50)
turtle.penup()
turtle.goto(-40,50)
turtle.pendown()
turtle.color("yellow")
turtle.circle(-50)
turtle.penup()
turtle.goto(80,50)
turtle.pendown()
turtle.color("green")
turtle.circle(-50)
turtle.penup()
turtle.goto(-100,100)
turtle.pendown()
turtle.color('blue')
turtle.circle(-50,135)
turtle.setheading(0)
turtle.penup()
turtle.goto(20,100)
turtle.pendown()
turtle.color('black')
turtle.circle(-50,225)
turtle.setheading(0)
turtle.penup()
turtle.goto(80,50)
turtle.pendown()
turtle.color('green')
turtle.circle(-50,315)
turtle.setheading(0)
turtle.penup()
turtle.goto(140,100)
turtle.pendown()
turtle.color('red')
turtle.circle(-50,225)
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-21 17:10 , Processed in 0.039130 second(s), 28 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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