图形练习四组

import turtle as tl
tl.pensize(10)
tl.color("yellow")
tl.fillcolor("red")
tl.begin_fill()
tl.right(144)
tl.forward(200)
tl.right(144)
tl.forward(200)
tl.left(72)
tl.forward(200)
tl.right(144)
tl.forward(200)
tl.left(72)
tl.forward(200)
tl.right(144)
tl.forward(200)
tl.left(72)
tl.forward(200)
tl.right(144)
tl.forward(200)
tl.left(72)
tl.forward(200)
tl.right(144)
tl.forward(200)
tl.end_fill()

import turtle as tl
tl.color("red")
tl.forward(100)
tl.left(90)
tl.forward(100)
tl.left(90)
tl.color("green")
tl.forward(100)
tl.left(90)
tl.forward(100)

import turtle as tl
tl.pensize(10)
tl.color("red")
tl.fillcolor("blue")
tl.begin_fill()
tl.forward(300)
tl.left(120)
tl.forward(300)
tl.left(120)
tl.forward(300)
tl.end_fill()

#Square_Screw.py
from turtle import *
pensize(3)
bgcolor("black")
colormode(255)
pencolor((51,204,120))
for i in range(100):
    fd(i +(i*2))
    left(90)
hideturtle()
done()

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值