09 2020 档案

摘要:#画国际象棋盘,小格边长为width import turtle turtle.speed(0) width = eval(input()) #画黑格 def drawSquare(width): turtle.pendown() turtle.begin_fill() turtle.fillcol 阅读全文
posted @ 2020-09-30 16:04 决战到天亮 阅读(146) 评论(0) 推荐(0)
摘要:import turtle turtle.speed(0) turtle.fillcolor('black') turtle.begin_fill() turtle.circle(120,180) turtle.left(180) turtle.circle(-60,180) turtle.circ 阅读全文
posted @ 2020-09-30 16:00 决战到天亮 阅读(124) 评论(0) 推荐(0)
摘要:import turtle turtle.pensize(5) coordA=(-110,0,110,-55,55) #五个图起点坐标的x值 coordB=(-25,-25,-25,-75,-75) #五个圆起点坐标的y值 cl=("red","blue","green","yellow","bla 阅读全文
posted @ 2020-09-30 15:53 决战到天亮 阅读(351) 评论(0) 推荐(1)
摘要: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)