智航學編程-002(城堡創作)

# import turtle
# turtle.forward(100)
# turtle.done()

from turtle import *
speed(0)
pensize(20)

#跳到指定位置
write("智航的城堡",False,"right",("Arial",28,"normal"))
color("blue")
goto(0,120)

forward(200)
left(120)
forward(200)
left(120)
forward(200)
left(120)

forward(200)
right(90)
forward(400)
right(90)
forward(600)
right(90)
forward(400)

right(90)
forward(200)
left(120)
forward(200)
left(120)
forward(200)
left(120)
forward(200)
right(90)
forward(120)
left(90)
forward(200)
left(90)
forward(200)
left(90)

forward(200)
right(120)
forward(200)
right(120)
forward(200)
right(120)
forward(200)
left(90)
forward(80)
done()

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章