python画彩色城墙_Python绘制城堡-(有惊喜!!!)
大城堡在这
importturtleimporttime
turtle.setup(1000,1000,200,200)‘‘‘背景‘‘‘turtle.bgcolor(‘#191970‘)‘‘‘笔的大小‘‘‘turtle.pensize(5)
turtle.speed(15)
turtle.penup()
turtle.seth(180)
turtle.fd(450)
turtle.seth(90)
turtle.fd(220)‘‘‘1‘‘‘turtle.begin_fill()
turtle.fillcolor(‘#4b0082‘)
turtle.pendown()
turtle.seth(240)
turtle.fd(60)
turtle.penup()
turtle.seth(60)
turtle.fd(60)
turtle.pendown()
turtle.seth(300)
turtle.fd(60)
turtle.seth(180)
turtle.fd(60)
turtle.end_fill()
turtle.seth(267)
turtle.fd(200)
turtle.seth(87)
turtle.fd(200)
turtle.seth(0)
turtle.fd(60)
turtle.seth(273)
turtle.fd(200)
turtle.seth(0)
turtle.fd(50)
turtle.seth(180)
turtle.fd(200)
turtle.seth(270)
turtle.fd(230)
turtle.seth(0)
turtle.fd(150)
turtle.begin_fill()
turtle.fillcolor(‘#483d8b‘)
turtle.seth(90)
turtle.fd(140)
turtle.circle(35,180)
turtle.seth(270)
turtle.fd(140)
turtle.seth(0)
turtle.fd(120)
turtle.end_fill()‘‘‘2‘‘‘turtle.seth(270)
turtle.fd(30)
turtle.seth(0)
turtle.fd(50)
turtle.penup()
turtle.seth(180)
turtle.fd(50)
turtle.pendown()
turtle.seth(90)
turtle.fd(350)
turtle.seth(180)
turtle.fd(10)
turtle.begin_fill()
turtle.fillcolor(‘#4b0082‘)
turtle.seth(90)
turtle.fd(70)
turtle.seth(0)
turtle.fd(20)
turtle.seth(270)
turtle.fd(30)
turtle.seth(0)
turtle.fd(20)
turtle.seth(90)
turtle.fd(30)
turtle.seth(0)
turtle.fd(20)
turtle.seth(270)
turtle.fd(30)
turtle.seth(0)
turtle.fd(20)
turtle.seth(90)
turtle.fd(30)
turtle.seth(0)
turtle.fd(20)
turtle.seth(270)
turtle.fd(70)
turtle.seth(180)
turtle.fd(100)
turtle.end_fill()
turtle.penup()
turtle.seth(0)
turtle.fd(40)
turtle.seth(270)
turtle.fd(30)‘‘‘中间不规则‘‘‘turtle.begin_fill()
turtle.fillcolor(‘#483d8b‘)
turtle.pendown()
turtle.circle(15,-180)
turtle.seth(270)
turtle.fd(45)
turtle.seth(180)
turtle.fd(30)
turtle.seth(90)
turtle.fd(45)
turtle.end_fill()
turtle.penup()
turtle.seth(90)
turtle.fd(30)
turtle.seth(0)
turtle.fd(55)‘‘‘3‘‘‘turtle.pendown()
turtle.seth(270)
turtle.fd(35)
turtle.seth(180)
turtle.fd(5)
turtle.seth(264)
turtle.fd(350)
turtle.seth(0)
turtle.fd(200)‘‘‘大门‘‘‘turtle.seth(270)
turtle.fd(10)
turtle.begin_fill()
turtle.fillcolor(‘#483d8b‘)
turtle.seth(0)
turtle.fd(20)
turtle.seth(89)
turtle.fd(150)
turtle.seth(-90)
turtle.circle(55,-180)
turtle.seth(271)
turtle.fd(150)
turtle.seth(180)
turtle.fd(134)
turtle.seth(88)
turtle.fd(155)
turtle.seth(-90)
turtle.circle(71,-180)
turtle.seth(273)
turtle.fd(155)
turtle.seth(180)
turtle.fd(30)
turtle.end_fill()
turtle.seth(0)
turtle.fd(30)
turtle.seth(90)
turtle.fd(10)
turtle.seth(0)
turtle.fd(200)
turtle.seth(96)
turtle.fd(350)‘‘‘城墙‘‘‘turtle.seth(180)
turtle.fd(50)
turtle.seth(270)
turtle.fd(50)
turtle.seth(180)
turtle.fd(56)
turtle.seth(90)
turtle.fd(50)
turtle.seth(180)
turtle.fd(50)
turtle.seth(270)
turtle.fd(50)
turtle.seth(180)
turtle.fd(58)
turtle.seth(90)
turtle.fd(50)
turtle.seth(180)
turtle.fd(50)
turtle.seth(270)
turtle.fd(50)
turtle.seth(180)
turtle.fd(56)
turtle.seth(90)
turtle.fd(50)
turtle.seth(180)
turtle.fd(50)
turtle.seth(270)
turtle.fd(50)
turtle.seth(180)
turtle.fd(56)
turtle.seth(90)
turtle.fd(50)
turtle.seth(180)
turtle.fd(52)‘‘‘城墙上的房子‘‘‘turtle.penup()
turtle.seth(0)
turtle.fd(115)
turtle.pendown()
turtle.seth(89)
turtle.fd(140)
turtle.begin_fill()
turtle.fillcolor(‘#4b0082‘)
turtle.seth(43)
turtle.fd(170)
turtle.seth(-43)
turtle.fd(170)
turtle.seth(180)
turtle.fd(250)
turtle.end_fill()‘‘‘窗户‘‘‘turtle.penup()
turtle.seth(270)
turtle.fd(40)
turtle.seth(0)
turtle.fd(160)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#483d8b‘)
turtle.seth(90)
turtle.circle(30,180)
turtle.seth(270)
turtle.fd(70)
turtle.seth(0)
turtle.fd(60)
turtle.seth(90)
turtle.fd(70)
turtle.end_fill()
turtle.seth(180)
turtle.fd(61)
turtle.penup()
turtle.seth(90)
turtle.fd(40)
turtle.seth(0)
turtle.fd(150)
turtle.pendown()
turtle.seth(271)
turtle.fd(140)
turtle.penup()
turtle.seth(0)
turtle.fd(100)
turtle.pendown()‘‘‘右半部分‘‘‘turtle.seth(90)
turtle.fd(30)
turtle.begin_fill()
turtle.fillcolor(‘#4b0082‘)
turtle.seth(180)
turtle.fd(15)
turtle.seth(90)
turtle.fd(70)‘‘‘城墙‘‘‘turtle.seth(0)
turtle.fd(25)
turtle.seth(270)
turtle.fd(30)
turtle.seth(0)
turtle.fd(25)
turtle.seth(90)
turtle.fd(30)
turtle.seth(0)
turtle.fd(25)
turtle.seth(270)
turtle.fd(30)
turtle.seth(0)
turtle.fd(25)
turtle.seth(90)
turtle.fd(30)
turtle.seth(0)
turtle.fd(25)
turtle.seth(270)
turtle.fd(70)
turtle.seth(180)
turtle.fd(110)
turtle.end_fill()‘‘‘其他‘‘‘turtle.penup()
turtle.seth(0)
turtle.fd(100)
turtle.pendown()
turtle.seth(270)
turtle.fd(340)
turtle.seth(180)
turtle.fd(58)
turtle.penup()
turtle.seth(90)
turtle.fd(310)
turtle.seth(0)
turtle.fd(30)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#483d8b‘)
turtle.seth(90)
turtle.circle(15,180)
turtle.seth(270)
turtle.fd(45)
turtle.seth(0)
turtle.fd(30)
turtle.seth(90)
turtle.fd(45)
turtle.end_fill()
turtle.penup()
turtle.seth(0)
turtle.fd(29)
turtle.seth(270)
turtle.fd(280)
turtle.pendown()
turtle.seth(0)
turtle.fd(45)
turtle.begin_fill()
turtle.fillcolor(‘#483d8b‘)
turtle.seth(90)
turtle.fd(150)
turtle.seth(270)
turtle.circle(30,-180)
turtle.seth(-90)
turtle.fd(150)
turtle.seth(180)
turtle.fd(60)
turtle.end_fill()
turtle.seth(0)
turtle.fd(140)
turtle.seth(90)
turtle.fd(250)
turtle.seth(180)
turtle.fd(190)
turtle.seth(0)
turtle.fd(70)
turtle.seth(87)
turtle.fd(200)
turtle.seth(0)
turtle.fd(10)
turtle.begin_fill()
turtle.fillcolor(‘#4b0082‘)
turtle.circle(15,-180)
turtle.seth(270)
turtle.circle(15,-180)
turtle.seth(-90)
turtle.circle(15,-180)
turtle.seth(180)
turtle.circle(15,-180)
turtle.end_fill()
turtle.seth(0)
turtle.fd(10)
turtle.seth(271)
turtle.fd(200)‘‘‘月亮‘‘‘turtle.penup()
turtle.left(180)
turtle.fd(410)
turtle.left(90)
turtle.fd(260)
turtle.pendown()
turtle.speed(10)
turtle.begin_fill()
turtle.pencolor(‘yellow‘)
turtle.circle(100,360)
turtle.fillcolor(‘yellow‘)
turtle.end_fill()‘‘‘星星‘‘‘turtle.penup()
turtle.left(25)
turtle.fd(530)
turtle.pendown()
turtle.begin_fill()
turtle.pencolor(‘yellow‘)
turtle.fillcolor(‘yellow‘)for i in range(5):
turtle.forward(25)
turtle.right(144)
turtle.end_fill()
turtle.penup()
turtle.seth(120)
turtle.fd(50)
turtle.pendown()
turtle.begin_fill()
turtle.pencolor(‘yellow‘)
turtle.fillcolor(‘yellow‘)for i in range(5):
turtle.forward(45)
turtle.right(144)
turtle.end_fill()
turtle.penup()
turtle.seth(150)
turtle.fd(180)
turtle.pendown()
turtle.begin_fill()
turtle.pencolor(‘yellow‘)
turtle.fillcolor(‘yellow‘)for i in range(5):
turtle.forward(35)
turtle.right(144)
turtle.end_fill()
turtle.penup()
turtle.seth(-150)
turtle.fd(180)
turtle.pendown()
turtle.begin_fill()
turtle.pencolor(‘yellow‘)
turtle.fillcolor(‘yellow‘)for i in range(5):
turtle.forward(28)
turtle.right(144)
turtle.end_fill()
turtle.penup()
turtle.seth(0)
turtle.fd(1200)
turtle.pendown()
turtle.begin_fill()
turtle.pencolor(‘yellow‘)
turtle.fillcolor(‘yellow‘)for i in range(5):
turtle.forward(38)
turtle.right(144)
turtle.end_fill()
turtle.penup()
turtle.seth(135)
turtle.fd(130)
turtle.pendown()
turtle.begin_fill()
turtle.pencolor(‘yellow‘)
turtle.fillcolor(‘yellow‘)for i in range(5):
turtle.forward(20)
turtle.right(144)
turtle.end_fill()‘‘‘月亮‘‘‘turtle.penup()
turtle.seth(180)
turtle.fd(300)
turtle.seth(-45)
turtle.fd(25)
turtle.pendown()
turtle.speed(15)
turtle.begin_fill()
turtle.pencolor(‘#191970‘)
turtle.circle(100,360)
turtle.fillcolor(‘#191970‘)
turtle.end_fill()‘‘‘文字‘‘‘turtle.speed(8)
turtle.penup()
turtle.seth(-90)
turtle.fd(380)
turtle.seth(180)
turtle.fd(400)
turtle.pendown()
turtle.pencolor(‘#FAEBD7‘)
s="The princess castle"turtle.write(s,font=("Script MT Bold","35"))
time.sleep(0.4)
turtle.pencolor(‘#FF00FF‘)
s="The princess castle"turtle.write(s,font=("Script MT Bold","35"))
turtle.pencolor(‘#FFFF00‘)
s="The princess castle"turtle.write(s,font=("Script MT Bold","35"))
time.sleep(0.4)
turtle.pencolor(‘#00C78C‘)
s="The princess castle"turtle.write(s,font=("Script MT Bold","35"))
time.sleep(0.4)
turtle.pencolor(‘#87CEEB‘)
s="The princess castle"turtle.write(s,font=("Script MT Bold","35"))
time.sleep(0.4)
turtle.pencolor(‘#00FFFF‘)
s="The princess castle"turtle.write(s,font=("Script MT Bold","35"))
time.sleep(0.4)
turtle.pencolor(‘#00C957‘)
s="The princess castle"turtle.write(s,font=("Script MT Bold","35"))
time.sleep(0.4)
turtle.pencolor(‘#40E0D0‘)
s="The princess castle"turtle.write(s,font=("Script MT Bold","35"))
time.sleep(0.4)
turtle.pencolor(‘#FFFF00‘)
s="The princess castle"turtle.write(s,font=("Script MT Bold","35"))
time.sleep(0.4)
turtle.pencolor(‘#00C78C‘)
s="The princess castle"turtle.write(s,font=("Script MT Bold","35"))
time.sleep(0.4)
turtle.pencolor(‘#87CEEB‘)
s="The princess castle"turtle.write(s,font=("Script MT Bold","35"))
time.sleep(0.4)
turtle.pencolor(‘#00FFFF‘)
s="The princess castle"turtle.write(s,font=("Script MT Bold","35"))
time.sleep(0.4)
turtle.pencolor(‘#00C957‘)
s="The princess castle"turtle.write(s,font=("Script MT Bold","35"))
time.sleep(0.4)
turtle.pencolor(‘#40E0D0‘)
s="The princess castle"turtle.write(s,font=("Script MT Bold","35"))
time.sleep(0.4)
turtle.penup()
turtle.seth(90)
turtle.fd(370)
turtle.seth(0)
turtle.fd(400)
turtle.pendown()
turtle.pencolor(‘#A020F0‘)
s="我们的公主梦"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.4)
turtle.pencolor(‘#FF6347‘)
s="我们的公主梦"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.4)
turtle.pencolor(‘#7CFC00‘)
s="我们的公主梦"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.4)
turtle.pencolor(‘#ED9121‘)
s="我们的公主梦"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.4)
turtle.pencolor(‘#FFFF00‘)
s="我们的公主梦"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.4)
turtle.pencolor(‘#7FFF00‘)
s="我们的公主梦"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.4)
turtle.pencolor(‘#A020F0‘)
s="我们的公主梦"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.4)
turtle.pencolor(‘#FF6347‘)
s="我们的公主梦"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.4)
turtle.pencolor(‘#7CFC00‘)
s="我们的公主梦"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.4)
turtle.pencolor(‘#ED9121‘)
s="我们的公主梦"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.4)
turtle.pencolor(‘#FFFF00‘)
s="我们的公主梦"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.4)
turtle.pencolor(‘#7FFF00‘)
s="我们的公主梦"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.4)
turtle.pencolor(‘#A020F0‘)
s="我们的公主梦"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.4)
turtle.pencolor(‘#FF6347‘)
s="我们的公主梦"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.4)
turtle.pencolor(‘#7CFC00‘)
s="我们的公主梦"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.4)
turtle.pencolor(‘#ED9121‘)
s="我们的公主梦"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.4)
turtle.pencolor(‘#FFFF00‘)
s="我们的公主梦"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.4)
turtle.pencolor(‘#7FFF00‘)
s="我们的公主梦"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.4)
time.sleep(1)‘‘‘表情‘‘‘turtle.clear()
turtle.bgcolor(‘white‘)‘‘‘开始‘‘‘turtle.pensize(2)
time.sleep(0.5)
turtle.speed(9)
turtle.penup()
turtle.seth(180)
turtle.fd(380)
turtle.seth(-90)
turtle.fd(200)
turtle.pendown()
turtle.begin_fill()
turtle.pencolor(‘#734A12‘)
turtle.circle(200,360)
turtle.fillcolor(‘yellow‘)
turtle.end_fill()
turtle.penup()
turtle.circle(200,45)
turtle.seth(0)
turtle.fd(272)
turtle.seth(90)
turtle.fd(275)
turtle.pendown()
turtle.pensize(5)
turtle.pencolor(‘black‘)
turtle.seth(90)
turtle.circle(30,180)
turtle.seth(180)
turtle.penup()
turtle.fd(140)
turtle.pendown()
turtle.seth(90)
turtle.circle(30,180)
turtle.penup()
turtle.fd(140)
turtle.seth(0)
turtle.fd(30)
turtle.pendown()
turtle.begin_fill()
turtle.pencolor(‘#734A12‘)
turtle.circle(55,360)
turtle.fillcolor(‘#734A12‘)
turtle.end_fill()
turtle.penup()
turtle.fd(200)
turtle.pendown()
turtle.begin_fill()
turtle.circle(55,360)
turtle.fillcolor(‘#734A12‘)
turtle.end_fill()‘‘‘眼珠子‘‘‘turtle.penup()
turtle.seth(30)
turtle.fd(35)
turtle.pendown()
turtle.begin_fill()
turtle.circle(15,360)
turtle.fillcolor(‘white‘)
turtle.end_fill()
turtle.penup()
turtle.seth(145)
turtle.fd(45)
turtle.seth(35)
turtle.pendown()
turtle.begin_fill()
turtle.circle(30,360)
turtle.fillcolor(‘white‘)
turtle.end_fill()
turtle.penup()
turtle.seth(180)
turtle.fd(200)
turtle.seth(35)
turtle.pendown()
turtle.begin_fill()
turtle.circle(30,360)
turtle.fillcolor(‘white‘)
turtle.end_fill()
turtle.penup()
turtle.seth(-35)
turtle.fd(45)
turtle.seth(35)
turtle.pendown()
turtle.begin_fill()
turtle.circle(15,360)
turtle.fillcolor(‘white‘)
turtle.end_fill()‘‘‘腮红‘‘‘turtle.penup()
turtle.seth(-90)
turtle.fd(12)
turtle.seth(-145)
turtle.pendown()
turtle.pencolor(‘#FF6347‘)
turtle.begin_fill()
turtle.fillcolor(‘#FF6347‘)
turtle.circle(-55,70)
turtle.seth(180)
turtle.circle(15,120)
turtle.left(13)
turtle.circle(60,90)
turtle.circle(15,120)
turtle.penup()
turtle.seth(0)
turtle.fd(198)
turtle.pendown()
turtle.seth(-145)
turtle.pendown()
turtle.circle(-55,70)
turtle.seth(180)
turtle.circle(15,120)
turtle.left(13)
turtle.circle(60,90)
turtle.circle(15,120)
turtle.end_fill()
turtle.penup()
turtle.seth(270)
turtle.fd(58)
turtle.seth(180)
turtle.fd(45)
turtle.pendown()‘‘‘鼻子‘‘‘turtle.pencolor(‘#000000‘)
turtle.seth(70)
turtle.circle(50,-133)
turtle.seth(65)
turtle.circle(50,-130)
turtle.penup()
turtle.seth(0)
turtle.fd(88)
turtle.pendown()‘‘‘嘴巴‘‘‘turtle.begin_fill()
turtle.fillcolor(‘#B22222‘)
turtle.seth(69)
turtle.circle(50,-68)
turtle.seth(-90)
turtle.circle(120,54)
turtle.seth(26)
turtle.circle(110,66)
turtle.pensize(1)
turtle.seth(17)
turtle.circle(53,-75)
turtle.end_fill()
turtle.penup()
turtle.seth(270)
turtle.fd(280)
turtle.seth(180)
turtle.fd(450)
turtle.pendown()
turtle.pensize(40)
turtle.pencolor("#FF0000")
s="投个票,好吗?比心哦~"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.3)
turtle.pencolor("#FF6100")
s="投个票,好吗?比心哦~"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.3)
turtle.pencolor("#FF0000")
s="投个票,好吗?比心哦~"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.3)
turtle.pencolor("#00FF00")
s="投个票,好吗?比心哦~"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.3)
turtle.pencolor("#00FFFF")
s="投个票,好吗?比心哦~"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.3)
turtle.pencolor("#0000FF")
s="投个票,好吗?比心哦~"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.3)
turtle.pencolor("#A020F0")
s="投个票,好吗?比心哦~"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.3)
turtle.pencolor("#FF7F50")
s="投个票,好吗?比心哦~"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.3)
turtle.pencolor("#33A1C9")
s="投个票,好吗?比心哦~"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.3)
turtle.pencolor("#4169E1")
s="投个票,好吗?比心哦~"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.3)
turtle.pencolor("#FF0000")
s="投个票,好吗?比心哦~"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.3)
turtle.pencolor("#FF6100")
s="投个票,好吗?比心哦~"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.3)
turtle.pencolor("#FF0000")
s="投个票,好吗?比心哦~"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.3)
turtle.pencolor("#00FF00")
s="投个票,好吗?比心哦~"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.3)
turtle.pencolor("#00FFFF")
s="投个票,好吗?比心哦~"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.3)
turtle.pencolor("#0000FF")
s="投个票,好吗?比心哦~"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.3)
turtle.pencolor("#A020F0")
s="投个票,好吗?比心哦~"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.3)
turtle.pencolor("#FF7F50")
s="投个票,好吗?比心哦~"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.3)
turtle.pencolor("#33A1C9")
s="投个票,好吗?比心哦~"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.3)
turtle.pencolor("#4169E1")
s="投个票,好吗?比心哦~"turtle.write(s,font=("华文行楷","50"))
time.sleep(0.3)
turtle.penup()
turtle.seth(0)
turtle.fd(680)
turtle.seth(90)
turtle.fd(90)
turtle.pendown()"""小爱心"""turtle.pensize(1)
turtle.pencolor(‘black‘)
turtle.speed(20)
turtle.begin_fill()
turtle.fillcolor(‘#FF00FF‘)
turtle.seth(35)
turtle.fd(18)
turtle.circle(10,200)
turtle.seth(125)
turtle.circle(10,200)
turtle.fd(18)
turtle.end_fill()
turtle.penup()
turtle.seth(40)
turtle.fd(49)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#FF00FF‘)
turtle.seth(35)
turtle.fd(15)
turtle.circle(9,200)
turtle.seth(125)
turtle.circle(9,200)
turtle.fd(15)
turtle.end_fill()
turtle.penup()
turtle.seth(45)
turtle.fd(40)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#FF00FF‘)
turtle.seth(35)
turtle.fd(10)
turtle.circle(5,200)
turtle.seth(125)
turtle.circle(5,200)
turtle.fd(10)
turtle.end_fill()
turtle.penup()
turtle.seth(50)
turtle.fd(30)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#FF00FF‘)
turtle.seth(35)
turtle.fd(10)
turtle.circle(5,200)
turtle.seth(125)
turtle.circle(5,200)
turtle.fd(10)
turtle.end_fill()
turtle.penup()
turtle.seth(50)
turtle.fd(30)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#FF00FF‘)
turtle.seth(35)
turtle.fd(10)
turtle.circle(5,200)
turtle.seth(125)
turtle.circle(5,200)
turtle.fd(10)
turtle.end_fill()
turtle.penup()
turtle.seth(50)
turtle.fd(25)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#FF00FF‘)
turtle.seth(35)
turtle.fd(5)
turtle.circle(3,200)
turtle.seth(125)
turtle.circle(3,200)
turtle.fd(5)
turtle.end_fill()
turtle.penup()
turtle.seth(50)
turtle.fd(25)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#FF00FF‘)
turtle.seth(35)
turtle.fd(5)
turtle.circle(3,200)
turtle.seth(125)
turtle.circle(3,200)
turtle.fd(5)
turtle.end_fill()
time.sleep(2)
turtle.clear()
turtle.penup()
turtle.seth(180)
turtle.fd(850)
turtle.seth(90)
turtle.fd(200)
turtle.pendown()
turtle.pencolor("#8A2BE2")
s="Thanks for watching"turtle.write(s,font=("Script MT Bold","80"))
time.sleep(0.2)
turtle.pencolor("#FF00FF")
s="Thanks for watching"turtle.write(s,font=("Script MT Bold","80"))
time.sleep(0.2)
turtle.pencolor("#0000FF")
s="Thanks for watching"turtle.write(s,font=("Script MT Bold","80"))
time.sleep(0.2)
turtle.pencolor("#9933FA")
s="Thanks for watching"turtle.write(s,font=("Script MT Bold","80"))‘‘‘小爱心‘‘‘turtle.pensize(1)
turtle.pencolor(‘black‘)
turtle.penup()
turtle.seth(4)
turtle.fd(910)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#FF00FF‘)
turtle.seth(35)
turtle.fd(18)
turtle.circle(10,200)
turtle.seth(125)
turtle.circle(10,200)
turtle.fd(18)
turtle.end_fill()
turtle.penup()
turtle.seth(40)
turtle.fd(49)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#FF00FF‘)
turtle.seth(35)
turtle.fd(15)
turtle.circle(9,200)
turtle.seth(125)
turtle.circle(9,200)
turtle.fd(15)
turtle.end_fill()
turtle.penup()
turtle.seth(45)
turtle.fd(40)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#FF00FF‘)
turtle.seth(35)
turtle.fd(10)
turtle.circle(5,200)
turtle.seth(125)
turtle.circle(5,200)
turtle.fd(10)
turtle.end_fill()‘‘‘大爱心‘‘‘turtle.speed(15)
turtle.pencolor(‘red‘)
turtle.penup()
turtle.seth(270)
turtle.fd(600)
turtle.seth(180)
turtle.fd(530)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘red‘)
turtle.begin_fill()
turtle.seth(35)
turtle.fd(255)
turtle.circle(150,200)
turtle.seth(125)
turtle.circle(150,200)
turtle.fd(255)
turtle.end_fill()
time.sleep(0.3)
turtle.speed(50)‘‘‘2‘‘‘turtle.penup()
turtle.seth(0)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#FF4500‘)
turtle.begin_fill()
turtle.seth(35)
turtle.fd(255)
turtle.circle(150,200)
turtle.seth(125)
turtle.circle(150,200)
turtle.fd(255)
turtle.end_fill()
time.sleep(0.3)‘‘‘3‘‘‘turtle.penup()
turtle.seth(0)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#E3170D‘)
turtle.begin_fill()
turtle.seth(35)
turtle.fd(255)
turtle.circle(150,200)
turtle.seth(125)
turtle.circle(150,200)
turtle.fd(255)
turtle.end_fill()
time.sleep(0.3)‘‘‘4‘‘‘turtle.penup()
turtle.seth(0)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#FF6347‘)
turtle.begin_fill()
turtle.seth(35)
turtle.fd(255)
turtle.circle(150,200)
turtle.seth(125)
turtle.circle(150,200)
turtle.fd(255)
turtle.end_fill()
time.sleep(0.3)
turtle.penup()
turtle.seth(0)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#FF6347‘)
turtle.begin_fill()
turtle.seth(35)
turtle.fd(255)
turtle.circle(150,200)
turtle.seth(125)
turtle.circle(150,200)
turtle.fd(255)
turtle.end_fill()
time.sleep(0.3)
turtle.penup()
turtle.seth(0)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘red‘)
turtle.begin_fill()
turtle.seth(35)
turtle.fd(255)
turtle.circle(150,200)
turtle.seth(125)
turtle.circle(150,200)
turtle.fd(255)
turtle.end_fill()
time.sleep(0.3)
turtle.penup()
turtle.seth(0)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#E3170D‘)
turtle.begin_fill()
turtle.seth(35)
turtle.fd(255)
turtle.circle(150,200)
turtle.seth(125)
turtle.circle(150,200)
turtle.fd(255)
turtle.end_fill()
time.sleep(0.3)
turtle.penup()
turtle.seth(0)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#FF4500‘)
turtle.begin_fill()
turtle.seth(35)
turtle.fd(255)
turtle.circle(150,200)
turtle.seth(125)
turtle.circle(150,200)
turtle.fd(255)
turtle.end_fill()
time.sleep(0.3)‘‘‘3‘‘‘turtle.penup()
turtle.seth(0)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#E3170D‘)
turtle.begin_fill()
turtle.seth(35)
turtle.fd(255)
turtle.circle(150,200)
turtle.seth(125)
turtle.circle(150,200)
turtle.fd(255)
turtle.end_fill()
time.sleep(0.3)‘‘‘4‘‘‘turtle.penup()
turtle.seth(0)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#FF6347‘)
turtle.begin_fill()
turtle.seth(35)
turtle.fd(255)
turtle.circle(150,200)
turtle.seth(125)
turtle.circle(150,200)
turtle.fd(255)
turtle.end_fill()
time.sleep(0.3)
turtle.penup()
turtle.seth(0)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#FF6347‘)
turtle.begin_fill()
turtle.seth(35)
turtle.fd(255)
turtle.circle(150,200)
turtle.seth(125)
turtle.circle(150,200)
turtle.fd(255)
turtle.end_fill()
time.sleep(0.3)
turtle.penup()
turtle.seth(0)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘red‘)
turtle.begin_fill()
turtle.seth(35)
turtle.fd(255)
turtle.circle(150,200)
turtle.seth(125)
turtle.circle(150,200)
turtle.fd(255)
turtle.end_fill()
time.sleep(0.3)
turtle.penup()
turtle.seth(0)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#E3170D‘)
turtle.begin_fill()
turtle.seth(35)
turtle.fd(255)
turtle.circle(150,200)
turtle.seth(125)
turtle.circle(150,200)
turtle.fd(255)
turtle.end_fill()
time.sleep(0.3)
turtle.penup()
turtle.seth(0)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#FF4500‘)
turtle.begin_fill()
turtle.seth(35)
turtle.fd(255)
turtle.circle(150,200)
turtle.seth(125)
turtle.circle(150,200)
turtle.fd(255)
turtle.end_fill()
time.sleep(0.3)‘‘‘3‘‘‘turtle.penup()
turtle.seth(0)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#E3170D‘)
turtle.begin_fill()
turtle.seth(35)
turtle.fd(255)
turtle.circle(150,200)
turtle.seth(125)
turtle.circle(150,200)
turtle.fd(255)
turtle.end_fill()
time.sleep(0.3)‘‘‘4‘‘‘turtle.penup()
turtle.seth(0)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#FF6347‘)
turtle.begin_fill()
turtle.seth(35)
turtle.fd(255)
turtle.circle(150,200)
turtle.seth(125)
turtle.circle(150,200)
turtle.fd(255)
turtle.end_fill()
time.sleep(0.3)
turtle.penup()
turtle.seth(0)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#FF6347‘)
turtle.begin_fill()
turtle.seth(35)
turtle.fd(255)
turtle.circle(150,200)
turtle.seth(125)
turtle.circle(150,200)
turtle.fd(255)
turtle.end_fill()
turtle.penup()
turtle.seth(0)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘red‘)
turtle.begin_fill()
turtle.seth(35)
turtle.fd(255)
turtle.circle(150,200)
turtle.seth(125)
turtle.circle(150,200)
turtle.fd(255)
turtle.end_fill()
time.sleep(0.3)
turtle.penup()
turtle.seth(0)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#E3170D‘)
turtle.begin_fill()
turtle.seth(35)
turtle.fd(255)
turtle.circle(150,200)
turtle.seth(125)
turtle.circle(150,200)
turtle.fd(255)
turtle.end_fill()
time.sleep(0.3)
turtle.penup()
turtle.seth(0)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#FF4500‘)
turtle.begin_fill()
turtle.seth(35)
turtle.fd(255)
turtle.circle(150,200)
turtle.seth(125)
turtle.circle(150,200)
turtle.fd(255)
turtle.end_fill()
time.sleep(0.3)‘‘‘3‘‘‘turtle.penup()
turtle.seth(0)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#E3170D‘)
turtle.begin_fill()
turtle.seth(35)
turtle.fd(255)
turtle.circle(150,200)
turtle.seth(125)
turtle.circle(150,200)
turtle.fd(255)
turtle.end_fill()
time.sleep(0.3)‘‘‘4‘‘‘turtle.penup()
turtle.seth(0)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#FF6347‘)
turtle.begin_fill()
turtle.seth(35)
turtle.fd(255)
turtle.circle(150,200)
turtle.seth(125)
turtle.circle(150,200)
turtle.fd(255)
turtle.end_fill()
time.sleep(0.3)
turtle.penup()
turtle.seth(0)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor(‘#FF6347‘)
turtle.begin_fill()
turtle.seth(35)
turtle.fd(255)
turtle.circle(150,200)
turtle.seth(125)
turtle.circle(150,200)
turtle.fd(255)
turtle.end_fill()
python画彩色城墙_Python绘制城堡-(有惊喜!!!)相关推荐
- python画数学函数_Python 绘制你想要的数学函数图形
Python 非常热门,但除非工作需要没有刻意去了解更多,直到有个函数图要绘制,想起了它.结果发现,完全用不着明白什么是编程,就可以使用它完成很多数学函数图的绘制.通过以下两个步骤,就可以进行数学函数 ...
- python画聚类图_python绘制的聚类图Python的局部变量和全局变量使用解惑
局部变量:在函数中定义的变量,作用域是当前函数,只对当前函数起作用. 全局变量:在代码开头定义的变量,作用域是整段代码,对整段代码起作用. 先看下面的实例, 最后给结论.name = 'PythonT ...
- python画数学函数_Python 绘制你想要的数学函数图形 !
Python 非常热门,但除非工作需要没有刻意去了解更多,直到有个函数图需要绘制,想起了它.结果发现,完全用不着明白什么是编程,就可以使用它完成很多数学函数图的绘制.通过以下两个步骤,就可以进行数学函 ...
- python画漏斗图_python绘制漏斗图步骤详解
pyecharts中的Funnel函数可以绘制漏斗图,自动根据数据大小生成由大到小自上而下排列的一个漏斗样的图形. 1.导入Funnel模块. from pyecharts import Funnel ...
- python 画ks曲线_Python绘制KS曲线的实现方法
python实现KS曲线,相关使用方法请参考上篇博客-R语言实现KS曲线 代码如下: ####################### PlotKS ########################## ...
- python画趋势图_python 绘制走势图
1.工具 matplotlib numpy 2.matplotlib使用 import matplotlib.pyplot as plt #plt用于显示图片 import matplotlib.im ...
- python画熊猫代码_Python 绘制散点图(Pandas + Matplotlib)
简单绘制一个散点图. 数据使用小朋友的身高和体重,简单看看. 数据结构:下面看一下其中几条的部分内容,我们只需要其中身高(Height)和体重(Weight)列的数据: 共七万五千多条,下面看看通过p ...
- python画三维坐标_Python中三维坐标空间绘制的实现
在三维空间绘制点,线,面 1.绘制点 用scatter()散点绘制三维坐标点 from matplotlib import pyplot as plt from mpl_toolkits.mplot3 ...
- python画矩阵图_Python根据已知邻接矩阵绘制无向图操作示例
本文实例讲述了Python根据已知邻接矩阵绘制无向图操作.分享给大家供大家参考,具体如下: 有六个点:[0,1,2,3,4,5,6],六个点之间的邻接矩阵如表格所示,根据邻接矩阵绘制出相对应的图 0 ...
最新文章
- Linux多线程实践(6) --Posix读写锁解决读者写者问题
- CSS a:hover伪类在IE6下的问题
- 听说我们的元宵节,跟别人的不一样...
- 安卓bochs模拟linux_云电脑?不需要的,有了这个模拟器,手机轻松变电脑
- EncodeUtil
- [转]SQL Server 2000执行计划成本(1/5)
- 修改freebsd的主机名
- 将华氏温度转化成摄氏度和绝对温度
- AI队列长度检测:使用YOLO进行视频中的对象检测
- 十九、python沉淀之路--装饰器
- 如何通过 Mac 使用 AirPods 收听?
- 使用powershell执行在线脚本的具体示例
- 小D课堂 - 新版本微服务springcloud+Docker教程_3-02CAP理论知识
- 听说这家云计算公司要搞事情
- FP-XH 松下PLC控制器资料下载
- 迁移学习—Geodesic Flow Kernel for Unsupervised Domain Adaptation
- pip 批量完全卸载包
- Python爬虫之BeautifulSoup
- 六月软件程序大赛WBS图
- GO语言Comma-ok断言
热门文章
- 后台获得客户端IP地址
- MySQL Cluster集群配置方案
- linux 实验 广技师 进程管理与系统监视,Linux系统管理之进程管理
- dw6能编译asp吗,让Adobe Dreamweaver CC支持ASP
- python自动化上传图片_接口自动化之Python3_Requests之上传头像
- linux 6.4 安装dns,Linux 轻松上手 架设 CentOS 6.4 DNS+FTP ndash;(六)、安装设定vsftp
- android 自定义相册选择,Android通过手机拍照或从本地相册选取图片设置头像
- 修改系统路径 linux,Linux修改sudo的PATH路径的解决方法
- 世界名画 | 陌上花开,可缓缓归矣
- 控制车辆运行的19个神经元