受疫情影响已经在家呆好久了,拿Python写了一个新冠病毒,不是很好看,当然他也不需要很好看。我也是一个刚刚接触Python的小白,将就一下吧
import turtle
turtle.setup(650,650,300,300)
turtle.penup()
turtle.fd(-100)
turtle.pendown()
turtle.pensize(10)
for i in range(18):
turtle.pencolor("red")
turtle.fd(-20)
turtle.right(90)
turtle.pencolor("red")
turtle.circle(-10,340)
turtle.left(60)
turtle.pencolor("red")
turtle.fd(22)
turtle.left(90)
turtle.pencolor("gray")
turtle.circle(-250,10)
turtle.right(90)
turtle.done()