首页 > 代码库 > 简单4个正方形
简单4个正方形
接触一段py th
import turtle turtle.penup() #the first circle turtle.goto(0,-200) turtle.pendown() turtle.circle(200) turtle.pencolor("red") turtle.pensize(30) turtle.penup() #the second circle turtle.goto(0,-150) turtle.pendown() turtle.circle(150) turtle.pencolor("yellow") turtle.pensize(35) turtle.penup()#the third circle turtle.goto(0,-100) turtle.pendown() turtle.circle(100) turtle.pencolor("green") turtle.pensize(40) turtle.penup() #the fuorth circle turtle.goto(0,-50) turtle.pendown() turtle.circle(50) turtle.pencolor("purple") turtle.pensize(45)
mport turtle turtle.penup() #the first circle turtle.goto(0,-200) turtle.pendown() turtle.circle(200) turtle.pencolor("red") turtle.pensize(30) turtle.penup() #the second circle turtle.goto(0,-150) turtle.pendown() turtle.circle(150) turtle.pencolor("yellow") turtle.pensize(35) turtle.penup()#the third circle turtle.goto(0,-100) turtle.pendown() turtle.circle(100) turtle.pencolor("green") turtle.pensize(40) turtle.penup() #the fuorth circle turtle.goto(0,-50) turtle.pendown() turtle.circle(50) turtle.pencolor("purple") turtle.pensize(45)
on,虽然不能熟练应用,但还是希望有所尝试。
简单4个正方形
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。