python (turtle)画五环,,实现代码:impor
python (turtle)画五环,,实现代码:impor
实现代码:
import turtle #导入turtle模块
turtle.width(10) #笔的宽度
turtle.color("blue") #笔的颜色
turtle.circle(50) #画圆
turtle.penup() #抬笔,这样,路径就不会画出来
turtle.goto(120,0) #去坐标(120,0)
turtle.pendown() #下笔
turtle.color("black")
turtle.circle(50)
turtle.penup()
turtle.goto(240,0)
turtle.pendown()
turtle.color("red")
turtle.circle(50)
turtle.penup()
turtle.goto(60,-50)
turtle.pendown()
turtle.color("yellow")
turtle.circle(50)
turtle.penup()
turtle.goto(180,-50)
turtle.pendown()
turtle.color("green")
turtle.circle(50)
python (turtle)画五环
相关内容
- python selenium模块使用出错-selenium.common.exceptions.WebDrive
- python 验证码处理,,一、灰度处理,就是把
- python读取xml文件报错ValueError: multi-byte encodings are not s
- 【Python3练习题 019】 有一分数序列:2/1,3/2,5/3,8/5,
- Python创建ES索引,,# pip inst
- python3.6 request模块和ddt模块的安装,,1.1用cmd命令进
- 学习记录001-接口了解/请求and抓包and基础的python,001-
- centos 安装python3与Python2并存,并解决"smtplib&
- Python3 tkinter基础 Canvas create_polygon 画三角形,python3tki
- python解压分析jar包,,import osi
评论关闭