09 2020 档案
摘要:#画国际象棋盘,小格边长为width import turtle turtle.speed(0) width = eval(input()) #画黑格 def drawSquare(width): turtle.pendown() turtle.begin_fill() turtle.fillcol
阅读全文
摘要:import turtle turtle.speed(0) turtle.fillcolor('black') turtle.begin_fill() turtle.circle(120,180) turtle.left(180) turtle.circle(-60,180) turtle.circ
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:import turtle number = int(input()) #把用户输入转成整数 turtle.screensize(600,500,'white') turtle.pensize(3) #设置画笔宽度为3 turtle.pencolor('blue') #设置画笔颜色为黑色 turtl
阅读全文
摘要: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
阅读全文
摘要:import turtle turtle.pensize(5) turtle.pencolor("yellow") turtle.fillcolor("red") turtle.begin_fill() for i in range(5): turtle.forward(100) turtle.ri
阅读全文
摘要: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)
阅读全文
摘要:import turtle turtle.setup(450,350,200,200) turtle.penup() turtle.pensize(2) turtle.pencolor("red") turtle.fillcolor("yellow") turtle.fd(100) turtle.s
阅读全文
摘要: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(
阅读全文
浙公网安备 33010602011771号