简答题
偏难
#15732
交通标志是我们日常生活中最常见的标志类型,我们能通过交通标志直观的了解到当前道路的信息,你知道下图中的交通标志是什么意思吗?请你编写程序,绘制出下图“禁止驶入”…
交通标志是我们日常生活中最常见的标志类型,我们能通过交通标志直观的了解到当前道路的信息,你知道下图中的交通标志是什么意思吗?请你编写程序,绘制出下图“禁止驶入”标志。

要求:
(1)画笔起始坐标位置为(0,0);起始位置位于图形的最下方(见图),也是绘制圆形的起点;
(2)蓝色部分为半径120的圆;
(3)白色部分为长192、宽40的长方形,位置在蓝色部分的正中间,长方形四个点的坐标分别是(-96,100)、(96,100)、(96,140)、(-96,140);
(4)绘制完后隐藏画笔。
答案与解析
正确答案:<pre class="brush:python;toolbar:false">import turtle
turtle.color("blue")
turtle.begin_fill()
turtle.circle(120)
turtle.end_fill()
turtle.penup()
turtle.color("white")
turtle.goto(-96, 100)
turtle.pendown()
turtle.begin_fill()
turtle.goto(96,100)
turtle.goto(96,140)
turtle.goto(-96,140)
turtle.goto(-96, 100)
turtle.end_fill()
turtle.hideturtle()
turtle.done()</pre>
这道题暂未补解析。