from turtle import * setup(800, 800, 100, 100) fillcolor(‘#FFFFFF‘) begin_fill() circle(100, 180) circle(200, 180) seth(180) circle(-100, 180) end_fill() seth(90) penup() fd(85) pendown() seth(0) fillcolor(‘#000000‘) begin_fill() circle(25) end_fill() seth(-90) penup() fd(85) pendown() seth(180) fillcolor(‘#000000‘) begin_fill() circle(100, 180) circle(200, 180) seth(0) circle(-100, 180) end_fill() seth(-90) penup() fd(85) pendown() seth(-180) fillcolor(‘#FFFFFF‘) begin_fill() circle(25) end_fill() hideturtle() done()
原文:https://www.cnblogs.com/hjli/p/13773699.html