由于学校(声明:我绝对不是xxs,比六年级xxs大整整12个月,我现在已经是一个18岁差60个月的马上成人的人啦,来赚点零花钱)要求作业,坐着抱着超前一点的心态,画了一个高达,跟给人的小猪佩奇一块评分(悲-呜呜呜)。小蒟蒻的代码烂的离谱好多方式很麻烦
以上内容为我的代码(请勿抄袭):
import turtle as t
t.speed(0)
t.up()
t.begin_fill()
t.color('gray')
t.goto(-270*0.6,110*0.6)
t.down()
t.goto(-360*0.6,360*0.6)
t.goto(-405*0.6,340*0.6)
t.goto(-330*0.6,105*0.6)
t.goto(-270*0.6,110*0.6)
t.end_fill()
t.up()
t.begin_fill()
t.color('gray')
t.goto(270*0.6,110*0.6)
t.down()
t.goto(360*0.6,360*0.6)
t.goto(405*0.6,340*0.6)
t.goto(330*0.6,105*0.6)
t.goto(270*0.6,110*0.6)
t.end_fill()
t.up()
t.begin_fill()
t.color('gray')
t.goto(-365*0.6,395*0.6)
t.down()
t.goto(-370*0.6,410*0.6)
t.goto(-435*0.6,390*0.6)
t.goto(-430*0.6,375*0.6)
t.goto(-365*0.6,395*0.6)
t.end_fill()
t.up()
t.begin_fill()
t.color('gray')
t.goto(365*0.6,395*0.6)
t.down()
t.goto(370*0.6,410*0.6)
t.goto(435*0.6,390*0.6)
t.goto(430*0.6,375*0.6)
t.goto(365*0.6,395*0.6)
t.end_fill()#炮 涂色
t.up()
t.begin_fill()
t.color('blue')
t.goto(0,150*0.6)
t.down()
t.goto(-335*0.6,130*0.6)
t.circle(-65*0.6,-90)
t.goto(-390*0.6,-250*0.6)
t.circle(-40*0.6,-90)
t.goto(-125*0.6,-310*0.6)
t.goto(-115*0.6,-575*0.6)
t.goto(-95*0.6,-595*0.6)
t.goto(95*0.6,-595*0.6)
t.goto(115*0.6,-575*0.6)
t.goto(125*0.6,-310*0.6)
t.goto(340*0.6,-300*0.6)
t.seth(0)
t.circle(40*0.6,90)
t.goto(385*0.6,70*0.6)
t.seth(-90)
t.circle(-65*0.6,-90)
t.goto(0,150*0.6)
t.end_fill()
t.up()
t.begin_fill()
t.color('medium blue')
t.goto(-390*0.6,-30*0.6)
t.down()
t.goto(-370*0.6,-20*0.6)
t.goto(-320*0.6,-20*0.6)
t.goto(-180*0.6,-20*0.6)
t.goto(-100*0.6,-70*0.6)
t.goto(100*0.6,-70*0.6)
t.goto(180*0.6,-20*0.6)
t.goto(320*0.6,-20*0.6)
t.goto(370*0.6,-20*0.6)
t.goto(390*0.6,-30*0.6)
t.goto(390*0.6,-250*0.6)
t.seth(90)
t.circle(40*0.6,-90)
t.goto(125*0.6,-310*0.6)
t.goto(115*0.6,-575*0.6)
t.goto(95*0.6,-595*0.6)
t.goto(-95*0.6,-595*0.6)
t.goto(-115*0.6,-575*0.6)
t.goto(-125*0.6,-310*0.6)
t.goto(-340*0.6,-300*0.6)
t.seth(0)
t.circle(40*0.6,-90)
t.goto(-390*0.6,-30*0.6)
t.end_fill()
t.up()
t.begin_fill()
t.color('blue')
t.goto(-130*0.6,-70*0.6)
t.down()
t.goto(-70*0.6,-220*0.6)
t.goto(70*0.6,-220*0.6)
t.goto(130*0.6,-70*0.6)
t.goto(85*0.6,-230*0.6)
t.goto(85*0.6,-600*0.6)
t.goto(-85*0.6,-600*0.6)
t.goto(-85*0.6,-230*0.6)
t.goto(-130*0.6,-70*0.6)
t.end_fill()
t.up()
t.begin_fill()
t.color('medium blue')
t.goto(65*0.6,-240*0.6)
t.down()
t.goto(65*0.6,-580*0.6)
t.goto(-65*0.6,-580*0.6)
t.goto(-65*0.6,-240*0.6)
t.goto(65*0.6,-240*0.6)
t.end_fill()#身体(蓝)涂色
t.up()
t.begin_fill()
t.color('red')
t.goto(-330*0.6,-300*0.6)
t.down()
t.goto(-115*0.6,-310*0.6)
t.goto(-110*0.6,-630*0.6)
t.goto(-230*0.6,-630*0.6)
t.goto(-255*0.6,-600*0.6)
t.goto(-280*0.6,-600*0.6)
t.goto(-260*0.6,-480*0.6)
t.seth(90)
t.circle(-20,90)
t.up()
t.goto(-240*0.6,-460*0.6)
t.down()
t.seth(0)
t.circle(40,-90)
t.goto(-330*0.6,-300*0.6)
t.end_fill()
t.up()
t.begin_fill()
t.color('red')
t.goto(330*0.6,-300*0.6)
t.down()
t.goto(115*0.6,-310*0.6)
t.goto(110*0.6,-630*0.6)
t.goto(230*0.6,-630*0.6)
t.goto(255*0.6,-600*0.6)
t.goto(280*0.6,-600*0.6)
t.goto(260*0.6,-480*0.6)
t.seth(90)
t.circle(20,90)
t.up()
t.goto(240*0.6,-460*0.6)
t.down()
t.seth(0)
t.circle(40,90)
t.goto(330*0.6,-300*0.6)
t.end_fill()#身体(红)涂色
t.up()
t.begin_fill()
t.color('gold')
t.goto(-140*0.6,-140*0.6)
t.down()
t.seth(90)
t.circle(30*0.6,90)
t.goto(-340*0.6,-100*0.6)
t.seth(0)
t.circle(-30*0.6,-90)
t.goto(-355*0.6,-260*0.6)
t.goto(-330*0.6,-290*0.6)
t.goto(-160*0.6,-300*0.6)
t.goto(-140*0.6,-280*0.6)
t.goto(-140*0.6,-140*0.6)
t.end_fill()
t.up()
t.begin_fill()
t.color('DarkGoldenrod2')
t.goto(-160*0.6,-160*0.6)
t.down()
t.seth(90)
t.circle(20*0.6,90)
t.goto(-330*0.6,-130*0.6)
t.seth(0)
t.circle(-20*0.6,-90)
t.goto(-340*0.6,-250*0.6)
t.seth(90)
t.circle(-20*0.6,-90)
t.goto(-180*0.6,-280*0.6)
t.seth(0)
t.circle(20*0.6,90)
t.goto(-160*0.6,-160*0.6)
t.end_fill()
t.up()
t.begin_fill()
t.color('gray26')
t.goto(-170*0.6,-140*0.6)
t.down()
t.goto(-330*0.6,-130*0.6)
t.goto(-330*0.6,-135*0.6)
t.goto(-170*0.6,-145*0.6)
t.goto(-170*0.6,-140*0.6)
t.end_fill()
t.up()
t.begin_fill()
t.color('gold')
t.goto(-170*0.6,-145*0.6)
t.down()
t.goto(-330*0.6,-135*0.6)
t.goto(-330*0.6,-170*0.6)
t.goto(-170*0.6,-180*0.6)
t.goto(-170*0.6,-145*0.6)
t.end_fill()
t.up()
t.begin_fill()
t.color('gray26')
t.goto(-170*0.6,-180*0.6)
t.down()
t.goto(-330*0.6,-170*0.6)
t.goto(-330*0.6,-175*0.6)
t.goto(-170*0.6,-185*0.6)
t.goto(-170*0.6,-180*0.6)
t.end_fill()
t.up()
t.begin_fill()
t.color('gold')
t.goto(-170*0.6,-185*0.6)
t.down()
t.goto(-330*0.6,-175*0.6)
t.goto(-330*0.6,-210*0.6)
t.goto(-170*0.6,-220*0.6)
t.goto(-170*0.6,-185*0.6)
t.end_fill()
t.up()
t.begin_fill()
t.color('gray26')
t.goto(-170*0.6,-220*0.6)
t.down()
t.goto(-330*0.6,-210*0.6)
t.goto(-330*0.6,-215*0.6)
t.goto(-170*0.6,-225*0.6)
t.goto(-170*0.6,-220*0.6)
t.end_fill()
t.up()
t.begin_fill()
t.color('gold')
t.goto(-170*0.6,-225*0.6)
t.down()
t.goto(-330*0.6,-215*0.6)
t.goto(-330*0.6,-250*0.6)
t.goto(-170*0.6,-260*0.6)
t.goto(-170*0.6,-225*0.6)
t.end_fill()
t.up()
t.begin_fill()
t.color('gold')
t.goto(140*0.6,-140*0.6)
t.down()
t.seth(-90)
t.circle(30*0.6,-90)
t.goto(340*0.6,-100*0.6)
t.seth(180)
t.circle(30*0.6,-90)
t.goto(355*0.6,-260*0.6)
t.goto(330*0.6,-290*0.6)
t.goto(160*0.6,-300*0.6)
t.goto(140*0.6,-280*0.6)
t.goto(140*0.6,-140*0.6)
t.end_fill()
t.up()
t.begin_fill()
t.color('DarkGoldenrod2')
t.goto(160*0.6,-160*0.6)
t.down()
t.seth(90)
t.circle(-20*0.6,90)
t.goto(330*0.6,-130*0.6)
t.seth(0)
t.circle(-20*0.6,90)
t.goto(340*0.6,-250*0.6)
t.seth(90)
t.circle(20*0.6,-90)
t.goto(180*0.6,-280*0.6)
t.seth(0)
t.circle(20*0.6,-90)
t.goto(160*0.6,-160*0.6)
t.end_fill()
t.up()
t.begin_fill()
t.color('gray26')
t.goto(170*0.6,-140*0.6)
t.down()
t.goto(330*0.6,-130*0.6)
t.goto(330*0.6,-135*0.6)
t.goto(170*0.6,-145*0.6)
t.goto(170*0.6,-140*0.6)
t.end_fill()
t.up()
t.begin_fill()
t.color('gold')
t.goto(170*0.6,-145*0.6)
t.down()
t.goto(330*0.6,-135*0.6)
t.goto(330*0.6,-170*0.6)
t.goto(170*0.6,-180*0.6)
t.goto(170*0.6,-145*0.6)
t.end_fill()
t.up()
t.begin_fill()
t.color('gray26')
t.goto(170*0.6,-180*0.6)
t.down()
t.goto(330*0.6,-170*0.6)
t.goto(330*0.6,-175*0.6)
t.goto(170*0.6,-185*0.6)
t.goto(170*0.6,-180*0.6)
t.end_fill()
t.up()
t.begin_fill()
t.color('gold')
t.goto(170*0.6,-185*0.6)
t.down()
t.goto(330*0.6,-175*0.6)
t.goto(330*0.6,-210*0.6)
t.goto(170*0.6,-220*0.6)
t.goto(170*0.6,-185*0.6)
t.end_fill()
t.up()
t.begin_fill()
t.color('gray26')
t.goto(170*0.6,-220*0.6)
t.down()
t.goto(330*0.6,-210*0.6)
t.goto(330*0.6,-215*0.6)
t.goto(170*0.6,-225*0.6)
t.goto(170*0.6,-220*0.6)
t.end_fill()
t.up()
t.begin_fill()
t.color('gold')
t.goto(170*0.6,-225*0.6)
t.down()
t.goto(330*0.6,-215*0.6)
t.goto(330*0.6,-250*0.6)
t.goto(170*0.6,-260*0.6)
t.goto(170*0.6,-225*0.6)
t.end_fill()#身体(金)涂色
t.up()
t.begin_fill()
t.goto(-320*0.6,0*0.6)
t.down()
t.color('white')
t.seth(0)
t.circle(-10*0.6)
t.end_fill()
t.up()
t.goto(320*0.6,0*0.6)
t.begin_fill()
t.seth(0)
t.color('white')
t.circle(-10*0.6)
t.end_fill()
t.up()#反光(白色) 涂色
t.color('black')
i=1
while i<3:
i+=0.25
t.goto(0+i,150*0.6+i)
t.down()
t.goto(-335*0.6-i,130*0.6+i)
t.seth(0)
t.circle(-65*0.6-i,-90)
t.goto(-390*0.6-i,-250*0.6-i)
t.circle(-40*0.6-i,-90)
t.goto(-125*0.6-i,-310*0.6-i)
t.goto(-115*0.6-i,-575*0.6-i)
t.goto(-95*0.6-i,-595*0.6-i)
t.goto(95*0.6+i,-595*0.6-i)
t.goto(115*0.6+i,-575*0.6-i)
t.goto(125*0.6+i,-310*0.6-i)
t.goto(340*0.6+i,-300*0.6-i)
t.seth(0)
t.circle(40*0.6+i,90)
t.goto(385*0.6+i,70*0.6+i)
t.seth(-90)
t.circle(-65*0.6-i,-90)
t.goto(0+i,150*0.6+i)
t.goto(-335*0.6-i,130*0.6+i)
t.goto(-330*0.6-i,100*0.6+i)
t.goto(-300*0.6-i,90*0.6+i)
t.goto(-320*0.6-i,0+i)
t.up()
t.goto(-320*0.6-i,-20*0.6-i)
t.down()
t.circle(10*0.6+i)
t.goto(-370*0.6-i,-20*0.6-i)
t.goto(-390*0.6-i,-30*0.6-i)#身体(蓝.外)描
t.up()
t.goto(-320*0.6-i,-20*0.6-i)
t.down()
t.goto(-180*0.6-i,-20*0.6-i)
t.goto(-100*0.6-i,-70*0.6-i)
t.goto(100*0.6+i,-70*0.6-i)
t.goto(180*0.6+i,-20*0.6-i)
t.goto(320*0.6+i,-20*0.6-i)
t.circle(10*0.6+i)
t.goto(370*0.6+i,-20*0.6-i)
t.goto(390*0.6+i,-30*0.6-i)
t.up()
t.goto(320*0.6+i,-20*0.6-i)
t.goto(320*0.6+i,0+i)
t.down()
t.goto(300*0.6+i,90*0.6+i)
t.goto(330*0.6+i,100*0.6+i)
t.goto(335*0.6+i,130*0.6+i)
t.up()
t.goto(-100*0.6-i,-70*0.6-i)
t.down()
t.goto(-170*0.6-i,-110*0.6-i)
t.up()
t.goto(100*0.6+i,-70*0.6-i)
t.down()
t.goto(170*0.6+i,-110*0.6-i)
t.up()
t.goto(-100*0.6-i,-70*0.6-i)
t.down()
t.goto(-125*0.6-i,-110*0.6-i)
t.goto(-115*0.6-i,-575*0.6-i)
t.up()
t.goto(100*0.6+i,-70*0.6-i)
t.down()
t.goto(125*0.6+i,-110*0.6-i)
t.goto(115*0.6+i,-575*0.6-i)
t.up()
t.goto(-130*0.6-i,-70*0.6-i)
t.down()
t.goto(-70*0.6-i,-220*0.6-i)
t.goto(70*0.6+i,-220*0.6-i)
t.goto(130*0.6+i,-70*0.6-i)
t.goto(85*0.6+i,-230*0.6-i)
t.goto(85*0.6+i,-600*0.6-i)
t.goto(-85*0.6-i,-600*0.6-i)
t.goto(-85*0.6-i,-230*0.6-i)
t.goto(-130*0.6-i,-70*0.6-i)
t.up()
t.goto(65*0.6+i,-240*0.6-i)
t.down()
t.goto(65*0.6+i,-580*0.6-i)
t.goto(-65*0.6-i,-580*0.6-i)
t.goto(-65*0.6-i,-240*0.6-i)
t.goto(65*0.6-i,-240*0.6-i)#身体(蓝.内)描
t.up()
t.goto(-330*0.6-i,-300*0.6-i)
t.down()
t.goto(-115*0.6-i,-310*0.6-i)
t.goto(-110*0.6-i,-630*0.6-i)
t.goto(-230*0.6-i,-630*0.6-i)
t.goto(-255*0.6-i,-600*0.6-i)
t.goto(-280*0.6-i,-600*0.6-i)
t.goto(-260*0.6-i,-480*0.6-i)
t.seth(90)
t.circle(-20-i,90)
t.up()
t.goto(-240*0.6-i,-460*0.6-i)
t.down()
t.seth(0)
t.circle(40+i,-90)
t.goto(-330*0.6-i,-300*0.6-i)
t.up()
t.goto(330*0.6+i,-300*0.6-i)
t.down()
t.goto(115*0.6+i,-310*0.6-i)
t.goto(110*0.6+i,-630*0.6-i)
t.goto(230*0.6+i,-630*0.6-i)
t.goto(255*0.6+i,-600*0.6-i)
t.goto(280*0.6+i,-600*0.6-i)
t.goto(260*0.6+i,-480*0.6-i)
t.seth(90)
t.circle(20+i,90)
t.up()
t.goto(240*0.6+i,-460*0.6-i)
t.down()
t.seth(0)
t.circle(40+i,90)
t.goto(330*0.6+i,-300*0.6-i)#身体(红)描
t.up()
t.goto(-140*0.6-i,-140*0.6-i)
t.down()
t.seth(90)
t.circle(30*0.6+i,90)
t.goto(-340*0.6-i,-100*0.6-i)
t.seth(0)
t.circle(-30*0.6-i,-90)
t.goto(-355*0.6-i,-260*0.6-i)
t.goto(-330*0.6-i,-290*0.6-i)
t.goto(-160*0.6-i,-300*0.6-i)
t.goto(-140*0.6-i,-280*0.6-i)
t.goto(-140*0.6-i,-140*0.6-i)
t.up()
t.goto(-160*0.6-i,-160*0.6-i)
t.down()
t.seth(90)
t.circle(20*0.6+i,90)
t.goto(-330*0.6-i,-130*0.6-i)
t.seth(0)
t.circle(-20*0.6-i,-90)
t.goto(-340*0.6-i,-250*0.6-i)
t.seth(90)
t.circle(-20*0.6-i,-90)
t.goto(-180*0.6-i,-280*0.6-i)
t.seth(0)
t.circle(20*0.6+i,90)
t.goto(-160*0.6-i,-160*0.6-i)
t.up()
t.goto(-170*0.6-i,-140*0.6-i)
t.down()
t.goto(-330*0.6-i,-130*0.6-i)
t.goto(-330*0.6-i,-135*0.6-i)
t.goto(-170*0.6-i,-145*0.6-i)
t.goto(-170*0.6-i,-140*0.6-i)
t.up()
t.goto(-170*0.6-i,-145*0.6-i)
t.down()
t.goto(-330*0.6-i,-135*0.6-i)
t.goto(-330*0.6-i,-170*0.6-i)
t.goto(-170*0.6-i,-180*0.6-i)
t.goto(-170*0.6-i,-145*0.6-i)
t.up()
t.goto(-230*0.6-i,-170*0.6-i)
t.down()
t.goto(-235*0.6-i,-155*0.6-i)
t.goto(-290*0.6-i,-155*0.6-i)
t.goto(-300*0.6-i,-175*0.6-i)
t.up()
t.goto(-170*0.6-i,-180*0.6-i)
t.down()
t.goto(-330*0.6-i,-170*0.6-i)
t.goto(-330*0.6-i,-175*0.6-i)
t.goto(-170*0.6-i,-185*0.6-i)
t.goto(-170*0.6-i,-180*0.6-i)
t.up()
t.goto(-170*0.6-i,-185*0.6-i)
t.down()
t.goto(-330*0.6-i,-175*0.6-i)
t.goto(-330*0.6-i,-210*0.6-i)
t.goto(-170*0.6-i,-220*0.6-i)
t.goto(-170*0.6-i,-185*0.6-i)
t.up()
t.goto(-230*0.6-i,-210*0.6-i)
t.down()
t.goto(-235*0.6-i,-200*0.6-i)
t.goto(-290*0.6-i,-200*0.6-i)
t.goto(-300*0.6-i,-220*0.6-i)
t.up()
t.goto(-170*0.6-i,-220*0.6-i)
t.down()
t.goto(-330*0.6-i,-210*0.6-i)
t.goto(-330*0.6-i,-215*0.6-i)
t.goto(-170*0.6-i,-225*0.6-i)
t.goto(-170*0.6-i,-220*0.6-i)
t.up()
t.goto(-170*0.6-i,-225*0.6-i)
t.down()
t.goto(-330*0.6-i,-215*0.6-i)
t.goto(-330*0.6-i,-250*0.6-i)
t.goto(-170*0.6-i,-260*0.6-i)
t.goto(-170*0.6-i,-225*0.6-i)
t.up()
t.goto(-230*0.6-i,-250*0.6-i)
t.down()
t.goto(-235*0.6-i,-240*0.6-i)
t.goto(-290*0.6-i,-240*0.6-i)
t.goto(-300*0.6-i,-260*0.6-i)
t.up()
t.goto(140*0.6+i,-140*0.6-i)
t.down()
t.seth(-90)
t.circle(30*0.6+i,-90)
t.goto(340*0.6+i,-100*0.6-i)
t.seth(180)
t.circle(30*0.6+i,-90)
t