摘要: import turtle for i in range(3): turtle.forward(100) turtle.right(120) turtle.left(60) turtle.forward(100) for i in range(3): turtle.right(120) turtle 阅读全文
posted @ 2020-09-30 15:50 决战到天亮 阅读(135) 评论(0) 推荐(0)
摘要: import turtle number = int(input()) #把用户输入转成整数 turtle.screensize(600,500,'white') turtle.pensize(3) #设置画笔宽度为3 turtle.pencolor('blue') #设置画笔颜色为黑色 turtl 阅读全文
posted @ 2020-09-30 15:48 决战到天亮 阅读(127) 评论(0) 推荐(0)
摘要: import turtle as tt radius=eval(input()) n=eval(input()) color=input() tt.pencolor(color) tt.goto(0,0) for i in range(n): tt.circle(radius) radius=rad 阅读全文
posted @ 2020-09-30 15:41 决战到天亮 阅读(119) 评论(0) 推荐(0)
摘要: import turtle turtle.pensize(5) turtle.pencolor("yellow") turtle.fillcolor("red") turtle.begin_fill() for i in range(5): turtle.forward(100) turtle.ri 阅读全文
posted @ 2020-09-30 15:35 决战到天亮 阅读(161) 评论(0) 推荐(0)
摘要: import turtle as tt tt.setup(450,350,200,200) tt.pensize(2) tt.pencolor("red") tt.fillcolor("purple") for i in range(3): tt.forward(100) tt.right(120) 阅读全文
posted @ 2020-09-15 09:18 决战到天亮 阅读(241) 评论(0) 推荐(0)
摘要: import turtle turtle.setup(450,350,200,200) turtle.penup() turtle.pensize(2) turtle.pencolor("red") turtle.fillcolor("yellow") turtle.fd(100) turtle.s 阅读全文
posted @ 2020-09-15 08:41 决战到天亮 阅读(169) 评论(0) 推荐(0)
摘要: import turtle turtle.fillcolor("red") turtle.begin_fill() n=1 while n<=5: turtle.forward(200) turtle.right(144) n=n+1 turtle.end_fill() turtle.Turtle( 阅读全文
posted @ 2020-09-15 08:18 决战到天亮 阅读(162) 评论(0) 推荐(0)