turtle库——案例5:画花花
import turtle as t
t.hideturtle()
t.title("画花花")
t.speed(10)
t.screensize(800,600)
t.shape("turtle")
t.colormode(255)
t.color(0,255,0)
t.pencolor(0,200,0)
t.pensize(5)

t.penup()
t.goto(0,-300)
t.left(90)
t.pendown()
t.showturtle()
t.forward(500)
for i in range(10):
    t.circle(27,360,4)
    t.left(36)
t.hideturtle()

t.penup()
t.goto(-200,-300)
t.pendown()
t.showturtle()
t.forward(500)
for i in range(6):
    for i in range(2):
        for i in range(18):
            t.forward(5)
            t.left(5)
        t.left(90)
    t.right(60)
t.hideturtle()

t.penup()
t.goto(200,-300)
t.pendown()
t.showturtle()
t.forward(500)
for i in range(6):
    for i in range(2):
        for i in range(18):
            t.forward(5)
            t.left(5)
        t.left(90)
    t.right(60)
t.hideturtle()

t.penup()
t.goto(-400,-300)
t.pendown()
t.showturtle()
t.forward(500)
for i in range(10):
    t.circle(27,360,4)
    t.left(36)
t.hideturtle()

t.penup()
t.goto(400,-300)
t.pendown()
t.showturtle()
t.forward(500)
for i in range(10):
    t.circle(27,360,4)
    t.left(36)
t.hideturtle()
暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇