def drawSnow():
hideturtle()
pensize(2)
for i in range(20):
pencolor("white")
penup()
setx(randint(-640,640))
sety(randint(-400,400))
pendown()
dens=randint(8,12)
snowsize=randint(10,14)
for j in range(dens):
forward(snowsize)
backward(snowsize)
right(360/dens)
————————————————
版权声明:本文为CSDN博主「魏振东」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/wei_zhen_dong/article/details/102750308