Python第一周作业
1 import turtle as t 2 t.pensize(5) 3 t.pencolor("black") 4 t.fillcolor("red") 5 t.begin_fill() 6 for i in range(5): 7 t.fd(300) 8 t.right(144) 9 t.end_fill()
1 import turtle as t 2 t.setup(800,600) 3 t.pensize(10) 4 t.pencolor("green") 5 6 t.begin_fill() 7 t.seth(30) 8 t.fd(300) 9 t.seth(-90) 10 t.fd(300) 11 t.seth(150) 12 t.fd(300) 13 14 t.seth(30) 15 t.fd(100) 16 t.seth(90) 17 t.fd(100) 18 t.seth(-30) 19 t.fd(300) 20 t.seth(-150) 21 t.fd(300) 22 t.seth(90) 23 t.fd(200)
1 import turtle as t 2 t.pensize(10) 3 t.pencolor("yellow") 4 5 t.seth(60) 6 t.fd(360) 7 t.seth(-60) 8 t.fd(360) 9 t.seth(180) 10 t.fd(360) 11 t.seth(60) 12 t.fd(180) 13 14 t.seth(0) 15 t.fd(180) 16 t.seth(-120) 17 t.fd(180) 18 t.seth(120) 19 t.fd(180)


浙公网安备 33010602011771号