找回密码
 中文实名注册
查看: 343|回复: 1

红路扥

[复制链接]

13

主题

109

帖子

984

积分

高级会员

sgsdgsg

Rank: 4

积分
984
发表于 2021-11-28 12:02:44 | 显示全部楼层 |阅读模式
import turtle as t
t.penup()
t.goto(-150,-50)
t.pendown()
t.fillcolor('green')
t.begin_fill()
t.circle(50)
t.end_fill()

t.penup()
t.goto(0,-50)
t.pendown()
t.fillcolor('yellow')
t.begin_fill()
t.circle(50)
t.end_fill()

t.penup()
t.goto(0, -50)
t.pendown()
t.fillcolor('green')
t.begin_fill()
t.circle(50)
t.end_fill()
t.done()

[Python] 纯文本查看 复制代码
import turtle as t
t.penup()
t.goto(-150,-50)
t.pendown()
t.fillcolor('green')
t.begin_fill()
t.circle(50)
t.end_fill()

t.penup()
t.goto(0,-50)
t.pendown()
t.fillcolor('yellow')
t.begin_fill()
t.circle(50)
t.end_fill()

t.penup()
t.goto(0, -50)
t.pendown()
t.fillcolor('green')
t.begin_fill()
t.circle(50)
t.end_fill()
t.done()

回复

使用道具 举报

4

主题

134

帖子

5209

积分

版主

Rank: 7Rank: 7Rank: 7

积分
5209
发表于 2021-11-28 15:18:01 | 显示全部楼层
你写错啦

import turtle as t
t.penup()
t.goto(-150,-50)
t.pendown()
t.fillcolor('green')
t.begin_fill()
t.circle(50)
t.end_fill()

t.penup()
t.goto(0,-50)
t.pendown()
t.fillcolor('yellow')
t.begin_fill()
t.circle(50)
t.end_fill()

t.penup()
t.goto(0, -50)
t.pendown()
t.fillcolor('green')
t.begin_fill()
t.circle(50)
t.end_fill()
t.done()
   


import turtle as t
t.penup()
t.goto(-150,-50)
t.pendown()
t.fillcolor('green')
t.begin_fill()
t.circle(50)
t.end_fill()

t.penup()
t.goto(0,-50)
t.pendown()
t.fillcolor('yellow')
t.begin_fill()
t.circle(50)
t.end_fill()

t.penup()
t.goto(150, -50)
t.pendown()
t.fillcolor('red')
t.begin_fill()
t.circle(50)
t.end_fill()
t.done()

回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-17 18:03 , Processed in 0.046198 second(s), 29 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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