好友
阅读权限10
听众
最后登录1970-1-1
|
【原创源码】【python】之画奥运五环
源码
#绘制奥运五环
import turtle
turtle.width(10) #3.加粗
#1.先横排画三个
turtle.color("blue") #4.最后加颜色
turtle.circle(50)
turtle.penup()
turtle.goto(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()
#2.再画竖排两个
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)
turtle.penup()
|
-
成品
免费评分
-
查看全部评分
|
发帖前要善用【论坛搜索】功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。 |
|
|
|
|