热门

最新

红包

立Flag

投票

同城

我的

发布
m0_75067035
咦?也?
4 年前
truem0_75067035

救两个小时了,就是有不对的地方,有没有大佬帮帮(用c语言)

CSDN App 扫码分享
分享
1
1
打赏
  • 复制链接
  • 举报
下一条:
一个平平无奇的反向同心圆代码:#TangenentCircleDraw.py(同切圆)import turtlefrom random import choiceturtle.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()打出来有惊喜哦
立即登录