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

神奇的多叶风车

[复制链接]

7

主题

8

回帖

684

积分

高级会员

积分
684
发表于 昨天 11:35 | 显示全部楼层 |阅读模式
[Python] 纯文本查看 复制代码
from turtle import*
import turtle

screen = Screen()
screen.setup(1920,1080)
screen.bgcolor("skyblue")
turtle.setheading(270)
turtle.forward(300)
turtle.backward(300)
turtle.color("red")
turtle.setheading(60)
for i in range(5):
    turtle.begin_fill()
    turtle.forward(150)
    turtle.left(90)
    turtle.circle(75,180)
    turtle.left(90)
    turtle.end_fill()
    turtle.left(72)

turtle.done()
Welcome
回复

使用道具 举报

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

本版积分规则

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