太极图
作者:互联网
#绘制太极图 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()
标签:太极图,end,seth,180,100,circle,fill 来源: https://www.cnblogs.com/zfx13660938374/p/13738827.html