当当当:turtle库的官方手册:点i这里
import turtle as t t.setup(600,600,300,200) t.fillcolor("blue") t.penup() t.left(90) t.fd(50) t.pendown() t.begin_fill() t.right(180) t.circle(10,180) t.circle(15,180) t.circle(30,180) t.circle(35,180) t.right(30) t.circle(80,120) t.left(50) t.circle(100,82) t.end_fill() t.begin_fill() t.speed(50) t.seth(60) t.fd(17) t.seth(-200) t.circle(80,-145) t.circle(80,-145) t.seth(310) t.fd(24) t.circle(80,60) t.circle(30,150) t.fd(24) t.end_fill() t.penup() t.seth(-90) t.fd(148) t.pendown() t.goto(60,-120) t.penup() t.goto(60,-120) t.pendown() t.seth(20) t.fd(10) t.begin_fill() t.color("black","green") t.seth(95) t.circle(-40,140) t.seth(260) t.circle(-47,110) t.end_fill() t.seth(15) t.circle(70,40) t.penup() t.goto(60,-120) t.pendown() t.goto(90,-200) t.seth(175) t.fd(10) t.begin_fill() t.color("black","green") t.seth(120) t.circle(30,140) t.seth(310) t.circle(32,120) t.end_fill() t.seth(200) t.circle(-70,35) t.exitonclick()
成员:吴铭贤 李凯旋