热门

最新

红包

立Flag

投票

同城

我的

发布
huluwajiubaba_
huluwajiubaba_
4 年前
truehuluwajiubaba_

一个平平无奇的反向同心圆
代码:#TangenentCircleDraw.py(同切圆)
import turtle
from random import choice
turtle.width(5)
turtle.speed(10000)
x=range(50,500,20)

for i in range(100):

for n in x:
color=["red","blue","green","pink","purple","yellow"]
color2=choice(color)
turtle.fillcolor(color2)
turtle.begin_fill()
turtle.pencolor(color2)
turtle.circle(n)#n是半径
turtle.end_fill()
turtle.right(90)
for n in x:
color=["red","blue","green","pink","purple","yellow"]
color2=choice(color)
turtle.fillcolor(color2)
turtle.begin_fill()
turtle.pencolor(color2)
turtle.circle(-n)
turtle.end_fill()
打出来有惊喜哦

CSDN App 扫码分享
分享
评论
1
打赏
  • 复制链接
  • 举报
下一条:
一个可以装但不实用的温度转换器
立即登录