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

梅宇鑫笔记

[复制链接]

3

主题

48

帖子

1009

积分

金牌会员

Rank: 6Rank: 6

积分
1009
发表于 2022-7-5 15:55:45 | 显示全部楼层 |阅读模式
[Python] 纯文本查看 复制代码
import turtle
turtle.penup()
turtle.goto(-100,50)
turtle.pendown()
turtle.right(90)
turtle.forward(50)
turtle.left(90)
turtle.forward(50)
turtle.right(90)
turtle.forward(200)
turtle.left(90)
turtle.forward(50)
turtle.left(90)
turtle.forward(200)
turtle.right(90)
turtle.forward(50)
turtle.left(90)
turtle.forward(50)
turtle.goto(-100, 50)
turtle.penup()
turtle.goto(-67, 25)
turtle.fillcolor('red')
turtle.begin_fill()
turtle.circle(15)
turtle.end_fill()
turtle.pendown()
turtle.penup()
turtle.goto(45, 25)
turtle.pendown()
turtle.circle(15)
turtle.fillcolor('green')
turtle.begin_fill()
turtle.circle(15)
turtle.end_fill()
turtle.penup()
turtle.goto(-25, -45)
turtle.fillcolor('yellow')
turtle.begin_fill()
turtle.circle(15)
turtle.end_fill()
turtle.pendown()
turtle.right(30)
turtle.done()

回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-22 00:14 , Processed in 0.040203 second(s), 28 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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